Coder Social home page Coder Social logo

api-web-poc's Introduction

api-web-poc

An API/Web app PoC using a bunch of modules and frameworks, like Express.js, AngularJS, Browserify, Mongo, etc.

Dependencies

This is a MEAN application (MongoDB, Express.js, AngularJS, Node.js), therefore you need to have a working installation of Node.js (0.10.x) and MongoDB (2.x). You will also require nodemon installed to make your life easier if any change is done on Node.js.

Install

IF there is no nodemon installed follow the command below, otherwise skip to step 2.

Step 1

npm install -g nodemon

Step 2

# CD to API folder and install Node.js dependencies
cd api
npm install

# CD to Web App folder and install Node.js and Browser dependencies
cd ../web
npm install
bower install

Run

This project is conformed by 2 applications, therefore you will need to run both simultaneously. You will require to have a local MongoDB server running with default settings (no user/password required, listening on port 27017).

On one terminal (console)

cd api
npm start

And on a different terminal (console)

cd web
npm start

The application itself require a user to be already present, therefore, you will need to insert a test user on a users collection:

$ mongo
MongoDB shell version: 2.4.9
> use test
switched to db test
> db.users.insert({"email": "[email protected]", "firstName": "Test", "lastName": "User", "password": "12345", "token": ""})
>

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.