Project management application for REMAP
Check out the demo page
-
Flask
-
SQLAlchemy
-
WTForms
-
Flask-GoogleMaps
-
geopy
-
pdfkit (TODO: Find an alternative to this package)
pip install virtualenv
virtualenv venv
source venv/bin/activate (for windows venv\Scripts\activate)
pip install -r requirements.txt
Firstly create an enviroment variable called "remap-config" which points to a "config2.cfg"
In the config.cfg file add the following setting in the format:
[setting] = [input]
REMAP_ADMIN2 = [email address for admin]
PROJECT_UPLOAD = [where to store uploaded project photos]
PROJECT_SOLUTION [where to store volunteer photo upload]
GOOGLEMAPS_KEY = [Google Maps API key]
BROWSER_KEY = [Browser key for google API]
SQLALCHEMY_DATABASE_URI = [The database URI that should be used for the connection]
python manage.py shell
db.create_all()
Role.insert_roles()
user = Volunteer(name="Obsidian", email="obsidian@remap.com", postcode="SW18", password="aaa")
db.session.add(user)
db.session.commit()
python manage.py runserver
Open up a web browser and type in the URL bar localhost:5000
- Lose dependency for pdfkit
- Use AJAX for the forms to reduce page reloads
- Complete unit testing
- Project list filter