Git Product home page Git Product logo

rest_test's Introduction

REST_Test

##Description This project was a test I was given as part of a job interview. The task was to create a REST api which could:

  • Create a user from a JSON request
  • List a user
  • List all users

A user needed to have the following properties:

  • Name
  • Username
  • Email
  • Password

For this project I ended up using:

Project dependencies are managed with Composer and Bower

I learned a lot about AngularJS on the way, which was a lot of fun.

##Demo

Click here for a live demo: Demo

##Install

Make sure you have all the requirements before proceeding.

Clone the repo

git clone https://github.com/jarvelov/REST_Test.git

Change into the directory

cd REST_Test

Run composer (install it first if you haven't got it already)

php composer.phar install

Make sure the directory is writable by the web server Note: This is for Apache2 on Ubuntu 14.04. Refer to your distributions/web documentation if this isn't what you are using.

Make sure you run this inside the REST_Test directory!

chown www-data:www-data . -R

Then browse to the address with a web browser.

The database is automatically created on the first visit. To empty the database simply remove the database.db and revisit the address.

##Requirements

  • Composer
  • PHP 5.4 or higher
  • AngularJS 1.4.3 or higher
  • SQLite 3

rest_test's People

Contributors

jarvelov avatar

Watchers

James Cloos avatar  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.