Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 918 Bytes

File metadata and controls

48 lines (31 loc) · 918 Bytes

Supera's API

API required by the Supera Tecnologia team for the second stage of the internship selection process.

REST API for requests, routes and business rules, using Node.js, MySQL, Express, BCrypt, JWT and Knex.

Installation

Clone the repository:

git clone https://github.com/scoorpionx/superaAPI.git

Run the DataBase Script to create MySQL Database:

Open the API Code and change the "knex.js" file to connect into your new database:

development: {
    client: 'mysql',
    connection: {
      host : 'your-host',
      user : 'your-user',
      password : 'your-password',
      database : 'supera'
    },
    useNullAsDefault: true,
  },

Install the dependencies:

npm install

Usage example

You can import the "Insomnia_SuperaAPI.json" file into Insomnia to test the API with some requisitions.