Sistema realizado em Nestjs, postgres e docker para IC25 do Ehealth do Inatel onde foi criado um sistema para controle de pacientes de fisioterapeutas
- Database (typeorm).
- Seeding.
- Config Service (@nestjs/config).
- Mailing (nodemailer, @nestjs-modules/mailer).
- Sign in and sign up via email.
- Admin, ISP and User roles.
- I18N (nestjs-i18n).
- File uploads. Support local and Amazon S3 drivers.
- Swagger.
- E2E and units tests.
- Docker.
- Pacient Module (CRUD)
- Session Module (CRUD)
git clone GIT_REPO
cd GIT_REPO
cp env-example .env
#config it
docker compose up -d
Change DATABASE_HOST=postgres
to DATABASE_HOST=localhost
Change MAIL_HOST=maildev
to MAIL_HOST=localhost
Run:
docker compose up -d postgres maildev redis
yarn
yarn migration:run
yarn seed:run
yarn start:dev
- Swagger: http://localhost:3000/docs
- Maildev: http://localhost:1080
Generate migration
yarn migration:generate -- src/database/migrations/CreateNameTable
Run migration
yarn migration:run
Revert migration
yarn migration:revert
Drop all tables in database
yarn schema:drop
Run seed
yarn seed:run
# e2e tests
sudo ./test-e2e.sh
docker compose -f docker-compose.ci.yaml --env-file env-example -p ci up --build --exit-code-from api && docker compose -p ci rm -svf
docker run --rm jordi/ab -n 100 -c 100 -T application/json -H "Authorization: Bearer USER_TOKEN" -v 2 http://<server_ip>:3000/api/v1/users