mypolitics-api is an app made with Node.js, MongoDB and TypeScript, which provides GraphQL API for myPolitics political test.
The first time, get all the dependencies loaded via
npm install
Then, define custom environment variables by creating .env
file according to this pattern
# MongoDB database URI
DATABASE_URI=
# Development variables
PORT=8000
NODE_ENV=development
Finally, run the server with
npm start