Skip to content

nogsantos/telzir

Repository files navigation

Telzir

Fabricio Nogueira (nogsantos@gmail.com).

Project structure
  • /
    • scripts
      • Build / testes / dev
    • infra
      • Docker / configurações nginx
  • 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

Run dev environment

Premisses

The ports 3000 and 3001 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

Run prod environment

Premisses

The ports 80 and 3000 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