GoBarber API
First of all you need to install NodeJS, Yarn, PostgreSQL, MongoDB and Redis
-
Install all dependencies.
$ yarn
-
Create an empty database in postgreSQL with name "gobarber".
-
Create a .env file into root directory, use .env.example file for env vars keys.
-
Migrate database.
$ yarn sequelize db:migrate
First setup your test env:
- Create a .env.test file into root directory, use .env.test.example file for env vars keys.
Now run tests:
$ yarn test
First you need to start dbs services (PostgreSQL, MongoDB and Redis).
$ yarn queue
and
$ yarn dev
Now api will listen on http://localhost:3333