version 1.0.0
- npm install
- Create Database
- Create migration (or you can do manually on your database).
- Run migration.
This application will provides the following Api endpoints:
GET /message
: return list of the all messagesGET /message/{id}
: return detail of messagePOST /message
: send sms, using payload:- Send sms Payload: { "sender": "string", "receipient": "phone number ex: +62xxx", "content": "string" }
You need install knex as global
- npm install knex -g
- knex migrate:make migrate_name
- knex migrate:latest
All of commands for run the system
- npm start
- npm run lint
- npm run test
- npm run migrate
- npm run seed