- Have Python 2.7.8 (or higher) installed
- Have Pip installed
- Have Virtualenv installed
-
Clone repository
-
Move into the goat_v3 folder
-
Create a virtual environnement using Virtualenv
-
Install needed libraries using this command :
pip install -r /path/to/requirements.txt
-
Set a MySQL database and load the marqueurs.sql table located in the project's root (it's a truncated dataset).
To have a complete dataset, contact beatriz.kanzki@gmail.com
Also make sure MySQL is running!
-
Connect project to database (in the settings.py file)
-
Migrate database (not really necessary since we loaded the sql files, but we never know...)
python manage.py migrate
-
Create a new superuser using this command :
python manage.py createsuperuser
-
Run the command (and keep it running!) :
python manage.py runserver
-
You should be good to go! The address should be http://localhost:8000
- (Same as above)
- Install Node.js and npm (3.10.10 working)
-
Do the same steps as above.
-
Move into /GOAT/front_end
-
Run this command. It will install all the dependencies in the 'package.json' file.
npm install
-
Run this command. It will launch a watcher, which will update the file 'main.js' which is where all the front_end code is compressed into for the browser.
npm start
-
Note : you will need to have both commands running!
- python manage.py runserver
- npm start
-
You should be good to go!