Code Monkey home page Code Monkey logo

hapi-retrofit-demo's Introduction

A Simple REST Server based on hapi

Here is a simple REST( Representational State Transfer ) Server, using hapi framework on Node.js.

This mini Project is a server side code for the video : Send Objects In Request Body.

Dependencies

You need the following tools installed on your computer to run the code:

  • Node.js
  • npm
  • MongoDB

Setup

To set up the required environment, just clone this repository to your local machine and install the npm dependencies.

$ git clone https://github.com/behindtheshadow/a-server-side-code-for-retrofit-push-demo.git
$ cd a-server-side-code-for-retrofit-push-demo
$ npm install -save

Run

You need first run MongoDB Server on your computer :

$ mongod

Then, open another terminal and run :

node server

You can test the server using postman chrome extension at address http://localhost:3000/api/user

If you are using Android Emulator to POST some json data, please be sure using the IP address 10.0.2.2 rather than localhost


I,m glad to to help you guys!

hapi-retrofit-demo's People

Contributors

lane-tang avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

hapi-retrofit-demo's Issues

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.