API developed with NodeJS(expressjs) and Sequelize.
The application is a simple repository for managing tools with their names, links, descriptions and tags.
-
Docker Documentation and download.
-
Compose Documentation and download.
-
Utils
- Init the containers in detached mode (background mode)
docker-compose up -d - Stop all containers
docker stop $(docker ps -a -q) - Delete all containers
docker rm $(docker ps -a -q)
- Init the containers in detached mode (background mode)
-
Configure your file
.env(see the example in.env.example): -
Put the same value in your
.envto database (DB) and docker (POSTGRES) -
Set DB_HOST=postgres and
-
Start your docker compose:
docker-compose upIf you're not in detached mode don't close youe terminal OBS: Sometimes you need to use
sudoin all commandsCTRL + C stop running.
-
If you need to rebuild the containers:
docker-compose up --build
Really? Please, use docker-compose
- Configure your file
.env(see the example in.env.example): - Set DB_HOST=localhost or to your remote database
- Run your DB
- Pay attention: When you run
npm run devoryarn devyour migrations gonna run too.
with npm
npm install
npm run dev
or
yanr
yarn dev
Você precisa ter um banco rodando localmente. Não esqueça de configurar o seu arquivo .env e o env.test
with npm
npm install
npm run test
or
yanr
yarn test
- express
- express-async-errors
- bcryptjs
- jsonwebtoken
- sequelize
- pg
- youch
- cors
- dotenv
- @sentry/node
- @sucrase/jest-plugin
- nodemon
- sucrase
- eslint
- eslint-config-airbnb-base
- eslint-config-prettier
- eslint-plugin-import
- eslint-plugin-prettier
- jest
- @types/jest
- factory-girl
- faker
- prettier
- sequelize-cli
- sqlite3
- supertest
- Please add in your extensions
eslintandprettier - In settings.json ( See VsCode ) put :
"editor.formatOnSave: true"and"prettier.esLintIntegration": true
Open an issue, please.