Skip to content

Latest commit

 

History

History
36 lines (19 loc) · 612 Bytes

README.md

File metadata and controls

36 lines (19 loc) · 612 Bytes

todo-api-graphql-typescript

Quick to do API that uses NodeJS, Typescript, Mongoose, ApolloServer and GraphQL

Dependencies

How to start

Start mongoDB instance using docker compose

  • $ docker-compose up

Install npm packages

  • $ npm i

Start the API for development

  • $ npm run dev

You can access to the GraphQL playground here (http://localhost:5000/graphql)

Build and start the API for production

  • $ npm start

Run test with Jest

  • $ npm test

Run a test coverage with Jest

  • $ npm test -- --coverage