itranga / myapi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is an example of RESTful CRUD in Node.js n mySQL.

Installation,Live DEMO, and tutorial here : http://teknosains.com/i/simple-crud-nodejs-mysql

Installation

*for newbies : Clone or download zip to your machine then hit this :

cd rest-crud

then

npm install

Configuration (database)

server.js

    host: 'localhost',
    user: 'root',
    password : 'root',
    port : 3306, //port mysql
    database:'test'	

You're gonna need to create a DB named 'test' or whatever you name it, import t_user.sql

Open your Browser

And type: localhost:3000/api/user

About


Languages

Language:JavaScript 54.0%Language:HTML 44.1%Language:CSS 2.0%