Telzir
Fabricio Nogueira (nogsantos@gmail.com).
Project structure
- /
- scripts
- Build / testes / dev
- infra
- Docker / configurações nginx
- scripts
- api
- Node
- Mongo
- client
- React
Setup
Requirements
Tool | Min. Version | Environment |
---|---|---|
Node | >= 10.x | Dev | Prod |
Npm | >= 5.x | Dev | Prod |
Docker | latest | Prod |
docker-compose | >= 1.23.1 | Prod |
Init and setup project
$ npm i
dev
environment
Run Premisses
The ports
3000
and3001
will be used to start the servers, they can not be in use for another process at the moment.
Up
$ npm run build:dev
Down
$ ctrl + c
prod
environment
Run Premisses
The ports
80
and3000
will be used, to raise the containers, they can not be in use on host.
Up
$ npm run build:prod
Down
$ npm run build:down
Tests
Test All Api and Client
$ npm test
Test just Api
$ npm run build:test:api
Test just Client
$ npm run build:test:client