josepot / Amaris

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API Test:

This is the api code created for the clients exercise as a job test on Node and databases. The ApI is protected by an auth system that will attach the X-Auth-User header to any requests that it receives, so we know which user is making the request.

This project is an example on how to create an api storing and retrieving information from a database.

How to make it work? In order to run this project you must:

  • Download the project
  • Excute the querys from dbClient and dbPolicies in your PostgreSQL database
  • Edit secrets.js and set your database password
  • Execute npm install in order to install all dependencies
  • Execute npm start to launch the server

About


Languages

Language:TSQL 91.9%Language:JavaScript 8.1%