Here you can find the backend api. Built with Nodejs, GraphQL and Prisma ORM.
- Apollo server: A GraphQL server library.
- Nexus: Code-first library to generate schema for GraphQL servers
- Prisma: Next generation of ORM to work with DB
- Postgres: Database provider
- Railway: Platform as a Service to deploy
- Typescript: Programming language with typings
- Jest: Test runner
- Git hooks with Husky and Linted staged: To help checking test and formatters before a commit
- ESLint: Validate the Typescript code style with best practices
- Prettier: Formatter files with configured options
- Sendgrid: Manage email sending
- Bcrypt: Password hashing
- JWT: JWT token
- Yarn
- Latest NodeJS LTS version
- Clone this repo
- Run on terminal
yarn
to install dependencies - Copy the content from
.env.example
and update the corresponding values - Run on terminal
yarn dev
and start building
yarn dev
yarn build
yarn start
yarn studio
yarn migrate:dev
Note: You should ensure to have the right credentials for the database on .env
file.
yarn migrate:dev --name NAME_OF_MIGRATION
Note: You should ensure to have the right credentials for the database on .env
file.
In this case, before run this command we should un/comment on the .env
the right DB provider env
yarn migrate
yarn generate:prisma
yarn generate:nexus
yarn generate
yarn clean
yarn test
yarn test:watch
yarn lint
yarn fmt
yarn pretty