/scalable-api-alura

Scable API with NodeJs + Alura :blue_heart:

Primary LanguageJavaScriptBSD Zero Clause License0BSD

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