This is a graphql server api for a simple todo application. The purpose of this project is test the ports and adapters architecture with TypeScript. It has the next features:
- Ports and adapters architecture.
- Graphql API with Apollo Server 3 and TypeGraphql.
- Graphql complexity manager.
- Authentication with JWT.
- Prisma ORM.
- Download the repository
git clone https://github.com/Jhomalex/todo-server-hex
- Install Node dependencies
npm install
- Rename the .example.env file with .env.test and set the variables with your data
- Create a database with the name set in the .env.test file
- Execute migrations
npm run prisma:migrate-test
- Generate Prisma types
npm run prisma:generate-test
- Run the project
npm run test