Skip to content

Getting started

merlosy edited this page Oct 15, 2014 · 3 revisions

Get it working

Requirements

PHP >= 5.4.0
MCrypt PHP Extension
MongoDB >= 2.6

How to install

1. Get the code

git clone git://github.com/merlosy/laravel-restful-api-starter.git my_api

or

https://github.com/merlosy/laravel-restful-api-starter/archive/master.zip

2. Use Composer to install dependencies

cd my_api
composer install --dev

3. Set you own project key

php artisan key:generate

4. Install mongoDB, set up the database and config files

MongoDB

Use the Javascript file to create the DB, and add the database user.

SQL type database

Use the standard process:

  • create your database test_api with a user test_user and the password test_password
  • run the command: php artisan migrate