Team project for a university course: designing highly efficient web services
Fietsenrek means a bike rack in Dutch. The project is about getting more fietsenrekken in places where they are really needed. It's community-based: users submit places where a bike rack would be handy while others vote for it.
To run the project backend locally follow these steps:
- Create a virtualenv with Python 3.5 (we suggest using a virtualenvwrapper)
mkvirtualenv -p python3.5 fietsenrek
- Install local requirements (while in the virtualenv)
pip install -r requirements/local.txt
- Set up the database
./manage.py migrate
- Create a superuser
./manage.py createsuperuser
- Run the development server on localhost (it's needed for the social apps)
./manage.py runserver localhost:8000
- Add social app integrations:
- for Facebook:
- go to the developers site and create a Facebook Social App in the Django admin using App ID and App Secret from the site.
- in Django Admin change existing site (example.com) to http://localhost:8000/
- in Facebook Social App add site http://localhost:8000/
- for Facebook:
To run the project frontend locally follow these steps:
-
Install npm (https://docs.npmjs.com/getting-started/installing-node)
-
cd fietsenrek-frontend -
npm install -
npm install @angular/http(may require additional libraries, install them if so) -
npm run serve -
Go to localhost:3000 and you're good to go!