- Notifications
You must be signed in to change notification settings - Fork1
LeonardodeLima/Node-API-RESTful
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Os seguintes módulos e ferramentas foram utilizados para o desenvolvimento da aplicação:
Postman:https://www.getpostman.com/
Nodemon:https://github.com/remy/nodemon
Restify:https://github.com/restify/node-restify
Restify(errors):https://github.com/restify/errors
Knexjs:https://github.com/tgriesser/knex /http://knexjs.org
E necessário ter previamente instalado Node ˆ8.x e o MySQL
CREATEDATABASE `db`;USE`db`;CREATETABLE `rest` (`id`int(11)NOT NULL AUTO_INCREMENTPRIMARY KEY,`name`varchar(30)NOT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;INSERT INTO`rest`VALUES(1,'João Pessoa');INSERT INTO`rest`VALUES(2,'Pessoa joão');
varknex=require('knex')({client:'mysql',connection:{host :'localhost',user :'root',password :'',database :''}});
1 cd Node-API-RESTful 2 npm install 3 npm run dev disponível: http://localhost:3000