This is a server-side application written in C#. It leverages the HotChocolate library to implement a GraphQL API and uses Entity Framework Core for interacting with a PostgreSQL database. The repository does not include the database itself; instead, it focuses on the backend logic and database interaction layer.
- GraphQL API: Built with HotChocolate to provide a flexible and efficient way to query and mutate data.
- PostgreSQL Integration: Entity Framework Core is used for seamless database interaction.
- Modular Design: Easy to extend and maintain.
- .NET 6.0 or higher
- PostgreSQL database
- Tools for managing PostgreSQL (e.g., pgAdmin, DBeaver)
- Clone the repository:
git clone https://github.com/ShdwKick/GoTogether.git
- Navigate to the project directory:
cd GoTogether
- Install dependencies:
dotnet restore
- Update the connection string in
appsettings.json
to point to your PostgreSQL database. - Apply migrations:
dotnet ef database update
- Run the application:
dotnet run
Once the application is running, you can access the GraphQL endpoint at:
http://localhost:5000/graphql
Use tools like GraphiQL or Altair GraphQL Client to interact with the API.
Feel free to fork the repository, create a new branch, and submit a pull request for any improvements or features.
Это серверное приложение, написанное на C#. Оно использует библиотеку HotChocolate для реализации GraphQL API и Entity Framework Core для взаимодействия с базой данных PostgreSQL. В репозитории отсутствует сама база данных; акцент сделан на серверной логике и слое взаимодействия с базой данных.
- GraphQL API: Реализовано с помощью HotChocolate для гибкого и эффективного запроса и изменения данных.
- Интеграция с PostgreSQL: Используется Entity Framework Core для удобной работы с базой данных.
- Модульная архитектура: Легко расширять и поддерживать.
- .NET 6.0 или выше
- PostgreSQL база данных
- Инструменты для работы с PostgreSQL (например, pgAdmin, DBeaver)
- Склонируйте репозиторий:
git clone https://github.com/ShdwKick/GoTogether.git
- Перейдите в директорию проекта:
cd GoTogether
- Установите зависимости:
dotnet restore
- Обновите строку подключения в файле
appsettings.json
, указав вашу базу данных PostgreSQL. - Примените миграции:
dotnet ef database update
- Запустите приложение:
dotnet run
После запуска приложения GraphQL endpoint будет доступен по адресу:
http://localhost:5000/graphql
Используйте инструменты, такие как GraphiQL или Altair GraphQL Client, для взаимодействия с API.
Вы можете форкнуть репозиторий, создать новую ветку и отправить pull request с улучшениями или новыми функциями.