Protontype Framework example using protontype-sequelize module
- open terminal
- git clone https://github.com/protontype/protontype-sequelize-sample.git
- npm install
- npm run build
- npm start
- http://localhost:3000/tasks (List all tasks)
- http://localhost:3000/tasks/:id (Get task by id)
- http://localhost:3000/users (List all users)
- http://localhost:3000/users/:id (Get user by id)
- http://localhost:3000/tasks (Creates task)
- http://localhost:3000/users (Creates user)
- http://localhost:3000/tasks/:id (Remove task)
- http://localhost:3000/users/:id (Remove user)
- http://localhost:3000/tasks/:id (Update task)
- http://localhost:3000/users/:id (Update user)
{
"title": "Make something",
"done": false,
"userId": 1
}
{
"name": "Bob",
"password": "123456",
"email": "[email protected]"
}
Cloning ProtonType module
- git clone https://github.com/protontype/protontype.git
- npm install
- npm link
Cloning and install example
- git clone https://github.com/protontype/protontype-sequelize-sample.git
- npm install
- npm link protontype
- tsc
- npm start
NodeJS 6.x or later