This is an application that allows bike riders to share their experience in a city.
0.0.1
For installing required libs and frameworks execute next commands:
git clone https://github.com/Social-projects-Rivne/Cycling
sudo apt-get install build-essential python-dev libmysqlclient-dev
pip install -r requirements.txtNext step you need to create config.ini file in the project folder. config.ini should contain next lines with yours setting:
[DataBase]
ENGINE = mysql
HOST = localhost
USER = root
PASSWORD = password
NAME = CYCLINGDB
[MailSender]
API_TOKEN: hw9r09ojwwi03fjw09rijf
MAIL_FROM: cycling.no-reply@email.ua
You have to create the database:
mysql -u root -p
source ./fixtures/create_db.sqlThis script creates new user and grants all rights on this new DB to it. Better open this create_db.sql and edit it: change user's name and password.
Then you have to let Django make its migrations
python manage.py makemigrations
python manage.py migrateAfter that you have to set npm
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
npm installnpm run gulp transformBuild all *.jsx files into one bundle.js file intostatic/js/app/npm run gulp buildBuild all *.jsx files into one minified bundle.js file intostatic/js/app/npm run gulp lessBuild all *.less files into one main.css file intostatic/css/
npm run gulp watchRun building every time you change any *jsx or *.less file