https://github.com/dataforgoodfr/batch2_newbed
https://github.com/dataforgoodfr/batch2_newbed
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dataforgoodfr/batch2_newbed
- Owner: dataforgoodfr
- Created: 2016-10-12T18:53:38.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-11T19:23:02.000Z (about 9 years ago)
- Last Synced: 2024-04-13T18:53:31.745Z (almost 2 years ago)
- Language: HTML
- Size: 31.7 MB
- Stars: 0
- Watchers: 10
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# batch2_newbed
Le but de [newbed][newbed] est d'identifier des hébergements succeptibles
d'accueillir des réfugiés
## Directory structure / index
* ```/``` - The root directory contains files needed by Heroku:
* ```newbed_app.py``` - A simple flask application that serves static content from ```/static```
* ```Procfile``` - Web worker configuration
* ```runtime.txt``` - Python version configuration
* [```/static```](/static) - Contains the current version (on master branch) of
[newbed.org][newbed]
* ```index.html``` - The landing page of [newbed.org][newbed]
* ```map``` - Contains the map shown on the landing page
* [```/workspace```](/workspace) - All the data, works in progress and other
files not directly used by the website has been moved here
## Running the app locally
* [Install virtualenv][venv]
* Create a new virtualenv environment: ```virtualenv --python=python3 env```
* Activate the environement: ```source env/bin/activate```
* Install requirements: ```pip install -r requirements.txt```
* Run the app: ```gunicorn -w 4 newbed_app:app```
## Deploying the app
To deploy the app, you need access to a Heroku account, you can set one up [this way][setup].
Once you have an account, you can [deploy the app][deploy], see "Existing Git repository".
## Demo
The app is currently running on:
* https://newbed.herokuapp.com
* http://www.newbed.org
[venv]: https://virtualenv.pypa.io/en/stable/
[setup]: https://devcenter.heroku.com/articles/getting-started-with-python#introduction
[deploy]: https://dashboard.heroku.com/apps/newbed/deploy/heroku-git
[newbed]: http://www.newbed.org