From c2b6ad4e1b6d5a27a34e0d0d44434eda52d9db21 Mon Sep 17 00:00:00 2001 From: Ivan Diaz Date: Fri, 4 Mar 2016 21:06:40 -0300 Subject: [PATCH] [Ivan Diaz] - Add backend to readme --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 32ab05bc..2d6e507f 100644 --- a/README.md +++ b/README.md @@ -18,15 +18,19 @@ OpenSupports v4.0 8. Run `gulp dev` 9. Go to the main app: `http://localhost:3000/app` or the component demo `http://localhost:3000/demo` 10. Your browser will automatically be opened and directed to the browser-sync proxy address -12. Use `gulp dev --api` to disable fixtures and use the real php server api (it must be running). +12. Use `gulp dev --api` to disable fixtures and use the real php server api (it must be running at :8080). Now that `gulp dev` is running, the server is up as well and serving files from the `/build` directory. Any changes in the `/src` directory will be automatically processed by Gulp and the changes will be injected to any open browsers pointed at the proxy address. ### Getting up and running BACK-END 1. Clone this repo -2. [Create MySQL Database](#markdown-header-create-mysql-database) -TODO +2. [Install PHP5](http://www.howtogeek.com/howto/ubuntu/installing-php5-and-apache-on-ubuntu/) +3. [Create MySQL Database](#markdown-header-create-mysql-database) +4. [Install composer](https://www.digitalocean.com/community/tutorials/how-to-install-and-use-composer-on-ubuntu-14-04) +5. Go to `cd os4-react/api` +6. Run `composer install` +7. Run the server with `php -S localhost:8080` ### Create MySQL Database