Skip to content

agustints/OT138-SERVER

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Server Base - Proyecto ONG

Envinroment setup

  1. Create database
  2. Copy .env.example to .env and fill with database credentials.

To install dependencies, run

npm install
  1. Migrations:
npx sequelize-cli db:migrate
  1. Seeders:
npx sequelize-cli db:seed:all

Start local server

npm start

Start Development local server

npm run dev

Build local server

npm run build

Tests

# Run migrations on test database
NODE_ENV=test npx sequelize-cli db:migrate
# Run tests
npm run test

Demo users

This credentials can be used to login.

Email:

Password for all users: test1234

API Response Format

{
  error: false, // required
  errorCode: "VAL001", // ej. VAL001 = Validation failed on fields, required when error = true.
  errorFields: [], // required when validation error.
  status: "200", // required
  message: "success", // required
  result: {} // Object or Array. required
}

About

ONG-JS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.7%
  • Other 0.3%