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.
Clone the repository:
git clone https://github.com/scoorpionx/superaAPI.gitRun 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 installYou can import the "Insomnia_SuperaAPI.json" file into Insomnia to test the API with some requisitions.


