Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

alibaba-archive/pandora-example-rest-crud

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Installation, and tutorial here : http://teknosains.com/i/restful-crud-example-with-nodejs-and-mysql

Live DEMO: 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

Start with Pandora.js

After you installed Pandora.js global command line, then you can just run pandora start as below.

$ pandora start

Open your Browser

And type: localhost:3000/api/user

About

RESTFul CRUD Example with Node.js and Mysql

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 58.0%
  • HTML 40.3%
  • CSS 1.7%