- Clone the repository on your machine.
- Make sure you have php and MySQL installed.
- Install node and npm (https://docs.npmjs.com/getting-started/installing-node) if you don't already have them.
- Run command
npm install
. This will install all the required dependencies. - Run
bower install
. - Run
composer update
. You will have to install Composer (https://getcomposer.org/) if not already available before running this command.
If on development machine, run php app/console doctrine:schema:update --force
this will update your database's schema.
If on a production machine, see SQL dump files in sql
directory. It would be best to run those.
- Make sure
app/config/parameters.yml
is setup. It should contain at least the same set of configuration as inapp/config/paramters.yml.dist
- You will also need to setup an Instagram client. Go to https://instagram.com/developer/clients/manage/ and create a new client.
- Make sure the redirect URL is setup as
http://localhost:8000/login/check-insta
and your website URL ishttp://localhost:8000
- The client ID and client secret received after setting up the new instagram client should be copy-pasted into your
parameters.yml
file. - Run
grunt serve
. You are ready to go. This is best for development. grunt build
will preprocess and prepare files for deployment. If you have setup apache or another server to access app.php, you're good to go.
See Branching.md for more info.
Deployments are currently made by pulling and building the code on the server. Steps are as follows:
-
Login to the EC2 server.
-
Navigate to the respective directory. Right now they are:
-
Staging: /home/ubuntu/www/poptates.lookmarkd.com
-
Production: /home/ubuntu/www/lookmarkd.com
-
-
Inside the directory pull the from the repository and the respective branch.
-
Run
grunt build
.