Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Simples API Node.js

NotificationsYou must be signed in to change notification settings

LeonardodeLima/Node-API-RESTful

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

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

Instalação e execução:

E necessário ter previamente instalado Node ˆ8.x e o MySQL

Insira a estrutura utilizada no 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');

Configure a conexãono arquivo index.js.

varknex=require('knex')({client:'mysql',connection:{host :'localhost',user :'root',password :'',database :''}});

Instalação:

 1 cd Node-API-RESTful 2 npm install 3 npm run dev disponível: http://localhost:3000

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp