Giter VIP home page Giter VIP logo

car-showroom's Introduction

Car Showroom


Angular.js application with a RESTful backend in Slim Framework

Stack

Installation

Platform & tools

You need to install a complete set of tools in the development environment, some of theme are:

  • PHP (~5.4)
  • MySQL
  • Composer
  • Some HTTP server
  • Node.js
  • Grunt
  • Bower
  • SASS
  • Compass

Get the Code

Either clone this repository or fork it on GitHub and clone your fork:

git clone https://github.com/manuelhe/car-showroom.git
cd car-showroom

App Server

Get the server dependencies running the following command in the root of the project:

composer install

Data persistance

Create a new database and use the file in /car-showroom/docs/test_carshowroom.sql to set the required tables and some example data.

Open the file /car-showroom/config/config.ini and change the database connection settings:

db_host = "localhost"
db_username = "root"
db_password = "root"
db_database = "test_carshowroom"
db_port = "8889"
db_socket = "/Applications/MAMP/tmp/mysql/mysql.sock"

Now you're able to use the RESTful API:

GET http://localhost/car-showroom/public-api/cars
GET http://localhost/car-showroom/public-api/cars/3
GET http://localhost/car-showroom/admin-api/cars
POST http://localhost/car-showroom/admin-api/cars
GET http://localhost/car-showroom/admin-api/cars/3
PUT http://localhost/car-showroom/admin-api/cars/3
DELETE http://localhost/car-showroom/admin-api/cars/3

Client application

In a fresh installation you need to get all development and frontend dependencies:

car-showroom/jsapp/npm install
car-showroom/jsapp/bower install

Then you can build the project or run the development server using:

grunt dist
grunt server

car-showroom's People

Contributors

manuelhe avatar

Watchers

 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.