GQL API providing data for Tweet analytics
This is a GraphQL API that provides data for Tweet analytics. It's built using TypeScript and powered by various technologies including Apollo Server, Prisma, and MongoDB.
To get started with this project, follow these steps:
- Clone the repository:
git clone <repository-url>
cd os-tweets-gql-api
- Install dependencies:
npm install
- Build the project:
npm run build
-
Set up your environment variables by creating a
.env
file and configuring it. -
Start the application:
npm start
After installation, the GraphQL API will be accessible at http://localhost:<port>/graphql
where <port>
is the port you configured in your environment variables.
You can use tools like Apollo Studio or GraphQL Playground to interact with the API.
If you want to contribute to this project or run it in a development environment, you can use the following scripts:
- Start the development server with auto-reloading:
npm run dev
- Generate Prisma client code:
npm run generate:prisma
- Generate TypeScript types and resolvers using GraphQL Codegen:
npm run codegen
To run tests, use the following command:
npm test
We use Jest for testing, and you can add your test cases to the __tests__
directory.
If you'd like to contribute to this project, please follow these guidelines:
- Fork the repository on GitHub.
- Create a new branch with a descriptive name.
- Make your changes and commit them.
- Push your changes to your fork and submit a pull request.
Please ensure your code follows the project's coding standards and is well-documented.
This project is licensed under the MIT License. See the LICENSE file for details.
Feel free to modify the content and structure of this README to better suit your project's needs. Replace <repository-url>
with the actual URL of your Git repository.