API-REST of Providers developed with Swagger and PostgreSQL.
Clone the repository:
git clone https://github.com/hadominguez/api-proveedores.gitTo create the database, use the command:
psql -U postgres < sql/proveedor.sqlInstall all packages:
npm installCopy environment file:
cp .env.example .env.devConfig the file .env.dev:
# Host
HTTP_HOST=localhost
# Port
HTTP_PORT=3000
# Level Log (error, warn, info, http, verbose, debug, silly)
LEVEL_LOG_FILE=info
# Level Log (error, warn, info, http, verbose, debug, silly)
LEVEL_LOG_CONSOLE=error
# Host DB
HOST_DB=localhost
# Port DB
PORT_DB=5432
# Name DB
NAME_DB=database
# USER DB
USER_DB=user
# PASSWORD DB
PASS_DB=paswordRun the system:
npm run start-dev