service template for nodejs applications.
Name | Type | Default | Description |
---|---|---|---|
SERVICE_NAME: | String |
user | Microservice name. |
SERVICE_PORT: | Number |
3009 | Microservice port. |
DATABASE_URL: | String |
Database url. |
Type | URL | Body | Query | Response | Description |
---|---|---|---|---|---|
GET | /api/hello |
success: boolean |
Testing service connection. | ||
PUT | /api/update |
Update user informations. | |||
GET | /api/token |
token: String |
Get user informations by session token. | ||
GET | /api/id |
token: id |
Get user informations by user-id. | ||
GET | /api/all |
Get all users. |
LOCAL: create a .env
file, with the specified variables and run docker-compose up -d --build
.
This project is released under the Apache version 2 license.