Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thiiagoms/scalable-api-alura
Scable API with NodeJs + Alura :blue_heart:
https://github.com/thiiagoms/scalable-api-alura
alura api-alura node-api node-mysql
Last synced: about 2 months ago
JSON representation
Scable API with NodeJs + Alura :blue_heart:
- Host: GitHub
- URL: https://github.com/thiiagoms/scalable-api-alura
- Owner: thiiagoms
- License: 0bsd
- Created: 2022-07-21T01:01:40.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-10T01:46:42.000Z (over 2 years ago)
- Last Synced: 2023-03-06T05:10:50.816Z (almost 2 years ago)
- Topics: alura, api-alura, node-api, node-mysql
- Language: JavaScript
- Homepage:
- Size: 148 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
API with Node and Alura! :hearts:
- [Dependencies](#Dependencies)
- [Usage](#Usage)### Dependencies
- Git
- NodeJs LTS
- MySQL
- API Rest Client (Postman, Insomnia, etc)### Usage
1 - Clone:
```bash
$ git clone [email protected]:thiiagoms/scalable-poc-api-alura
```2 - Change `credentials` in `config/default.json`:
```json
{
"mysql": {
"databaseName": "[DATABASE-NAME]",
"databaseUser": "[DATABASE-USER]",
"databasePass": "[DATABASE-PASS]",
"databaseHost": "[DATABASE-HOST]"
},
"api": {
"PORT": [API-PORT-HERE]
}
}
```3 - Run migrations:
```bash
$ npm run migrate
```4 - Stand up server
```bash
$ npm run dev
Listening on http://localhost:[YOUR-API-PORT] or Listening on http://localhost:8000
```