GithubHelp home page GithubHelp logo

jiniadn / restfulnode Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jumacro/promisedrest

0.0 1.0 0.0 2.59 MB

This repositary is an effort to create a easy to use production ready framework for node.js using it as a RESTFUL API build with Oauth token

JavaScript 100.00%

restfulnode's Introduction

RestfulNode

This repositary is an effort to create an easy to use production ready framework for node.js using it as a RESTFUL API.

Technologies:-

  1. ExpressJs --- Used to create the scaffold for the Framework. See http://wwww.expressjs.com for full documentation
  2. PassportJs --- Used to create the Authentication system. See http://www.passportjs.org for documentation
  3. SequilizeJs --- We are using MySQL for the Api db. Squelizejs is a very good ORM written for nodejs with a lot many features. See http://www.docs.sequelizejs.com for more information.

How to run:-

First you have to install nodejs and npm onto your machine. The Official Nodejs website https://nodejs.org/ has good tutorial about how to install them.

Then follow the expressjs documentation and install expressjs and the express-generator

Clone the repositary

git clone https://github.com/jumacro/RestfulNode YourProjectName

Go to your project root. Run the package installer

npm install

Rename app.js.sample to app.js and set up your project credentials as per your need.

Set up your database as per the schema structure residing on the schema folder -> app/Model/Schema

Copy Config.js.sample from config folder residing at app/Config and rename to Config.js. Change the credential to your comfort. Run the application as:-

npm start

Browse your api as http://localhost/api/v1.0

Production trick

Install forever.js. Its a easy to way to keep your node app persistant. Follow the bellow blog for more information:- http://blog.nodejitsu.com/keep-a-nodejs-server-up-with-forever/

Happy Coding :)

restfulnode's People

Contributors

mithundas79 avatar

Watchers

Jinia Das Nandy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.