simpulton / simple-rest-website

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple REST Website

A simple website demonstrating CRUD, built using AngularJS, and powered by Simple REST API.

Prerequisites

You will need:

Getting Started

  1. Run the following commands
git clone git@github.com:simpulton/simple-rest-website.git
cd simple-rest-website
npm install -g serve
serve public
  1. Navigate to localhost:3000.

  2. Hooray! Now you can interact with the API running on heroku! How simple was that??

Running your own API server

If you would like to run your own api, then

  1. head over to Simple REST API and follow the directions there to run the API.

  2. Update public/app/app.js to use the local api server at http://localhost:1337/api/

  • Note: If you want to use the version without authentication, checkout the "without-auth" branch. Be sure to do the same in the simple-rest-api repo. Restart the API if necessary.

About


Languages

Language:JavaScript 53.3%Language:HTML 41.0%Language:CSS 5.7%