Api using graphql with mongodb, jwt, express.
To run this project, you will need to add the following environment variables to your .env file
PORT
port where the application will run
URI
uri to connecto to mongo
JWT_SECRET_KEY
Clone the project
git clone https://github.com/damian-git-99/graphql-api
Go to the project directory
cd graphql-api
Install mongoDB or run docker compose
docker compose -f "docker-compose.yml" up -d --build
Install project dependencies
npm install
Start the server
npm run start
test graphql endpoint
http://localhost:9000/graphql
- you have to register a user using the signIn operation.
- you have to get a token using the login operation.
- test all other operations, sending the token in the http Authorization header.
If you have any feedback, please reach out to us at [email protected]