Backend API RestFul SQL to Titi web.
- Backend Framework: NodeJs
- Server Framework: Express
- DB engine: PostgreSQL
- ORM: Sequelize
- Migrations management library: sequelize-cli
npm install
Create the file ".env" in the project root with the following content and put in the fields 'DB_USERNAME' and 'DB_PASSWORD' your Data Base credentials in the Development, Test and Production environments.
#Environment.
NODE_ENV=development
PORT=3001
#Json Web Token
JWT_SECRET=
JWT_SALT_ROUNDS=
#Development
DEV_DB_USERNAME=
DEV_DB_PASSWORD=
DEV_DATABASE=
DEV_DB_HOST=
DEV_DB_PORT=
#Test
TEST_DB_USERNAME=
TEST_DB_PASSWORD=
TEST_DATABASE=
TEST_DB_HOST=
TEST_DB_PORT=
#Email
STAFF_EMAIL=
STAFF_PASSWORD=
Note: Don't run this in local environment
npm start
npm run start:dev
npm test