Protontype with TypeORM Example (Default ORM)
- open terminal
- git clone https://github.com/protontype/protontype-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": "bob@mail.com"
}
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-sample.git
- npm install
- npm link protontype
- tsc
- npm start
NodeJS 6.x or later