- Node v15.2.1
- PostgreSQL 13.1
- Clone this project
- Create .env file
cp .env.example .env
- Run
yarn install
(Installs all the dependencies for your project) - Run postgress:
postgres -D /usr/local/var/postgres
- You can also run the database in docker with
docker-compose up
- You can also run the database in docker with
- Run
yarn typeorm migration:run
(Creates all of the database tables)
To populate the DB with faker data. Using typeorm-seeding
yarn seeding seed
- Run
yarn dev
- Go to http://localhost:4000/graphql/
- Run this query
mutation {
login(email:"[email protected]", password:"Hola12345") {
token
}
}
- Add the token in HTTP HEADERS tab to run the private queries:
{
"Authorization": "Bearer ${token}"
}
Before to send a PR please do it:
- Run
yarn test
to run the test in dev environment. - Run
yarn build
to ensure build is working. - Run
yarn prod:test
to run the test in with the js files. - Run
yarn eslint --fix
to validate the code style. - Run
yarn ejslint --fix
to validate the ejs files.
- To debug email in your localhost use this software: https://nodemailer.com/app/