To set up environment, make sure you have npm. You can download npm here: https://www.npmjs.com/
Next, install gulp and gulp dependencies by running following commands in command line:
$ npm install gulp -g
$ npm install
After setting up environment, you can start write SCSS in sass folder.
Build command:
$ gulp build
Add --sourcemaps as parameter of commands above to generate SCSS and CSS map.
We use Django as our framework to handle back-end logic. Prerequisites:
- Python
- Gunicorn
- PostgreSQL
Setup virtual env
$ [sudo] pip install virtualenv
Create VE with python3
$ virtualenv -p python3 env
Use created virtual environment
$ source env/bin/activate
- Clone this repository.
- Create a database for project.
- Copy
core/settings/local.env.sample
tocore.settings.local.env
. - Replace
DATABASE_URL
key with your local database credentials. You can use Postgres, MySQL,...
Notes: For mysql MSDB, please make sure your database chartset is support utf8. CREATE DATABASE vgualumni CHARACTER SET utf8 COLLATE utf8_general_ci;
Get Facebook access token for your fan page to configure the key FACEBOOK_ACCESS_TOKEN
.
Configure FACEBOOK_ALBUM_ID
key with ID of the photo album that you want photos being posted to.
Install all necessary packages
$ pip install -r requirements.txt
Apply migrations
$ python manage.py migrate
Run server
$ python src/manager.py runserver 8002
Feel free to ask me any question at ngdangdat09 [at] gmail.com.