Skip to content

thiiagoms/scalable-api-alura

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo Logo Logo

API with Node and Alura! ♥️

Dependencies

  • Git
  • NodeJs LTS
  • MySQL
  • API Rest Client (Postman, Insomnia, etc)

Usage

1 - Clone:

$ git clone git@github.com:thiiagoms/scalable-poc-api-alura

2 - Change credentials in config/default.json:

{
    "mysql": {
        "databaseName": "[DATABASE-NAME]",
        "databaseUser": "[DATABASE-USER]",
        "databasePass": "[DATABASE-PASS]",
        "databaseHost": "[DATABASE-HOST]"
    },
    "api": {
        "PORT": [API-PORT-HERE]
    }
}

3 - Run migrations:

$ npm run migrate

4 - Stand up server

$ npm run dev
Listening on http://localhost:[YOUR-API-PORT] or Listening on http://localhost:8000

Releases

No releases published

Packages

No packages published