Conditional requirements.txt, including all dependencies
This commit is contained in:
parent
82681c6c27
commit
6b25379fc0
@ -34,18 +34,16 @@ An alternative method is available using Docker. See [2.docker.md](2.docker.md).
|
|||||||
|
|
||||||
1. Clone the repository.
|
1. Clone the repository.
|
||||||
2. Install required Python modules: `pip install -r requirements.txt`.
|
2. Install required Python modules: `pip install -r requirements.txt`.
|
||||||
3. If you are running Flatisfy with Python 2, you should also `pip install
|
3. Init a configuration file: `python -m flatisfy init-config > config.json`.
|
||||||
functools32`.
|
|
||||||
4. Init a configuration file: `python -m flatisfy init-config > config.json`.
|
|
||||||
Edit it according to your needs (see below).
|
Edit it according to your needs (see below).
|
||||||
5. Build the required data files:
|
4. Build the required data files:
|
||||||
`python -m flatisfy build-data --config config.json`.
|
`python -m flatisfy build-data --config config.json`.
|
||||||
6. You can now run `python -m flatisfy import --config config.json` to fetch
|
5. You can now run `python -m flatisfy import --config config.json` to fetch
|
||||||
available flats, filter them and import everything in a SQLite database,
|
available flats, filter them and import everything in a SQLite database,
|
||||||
usable with the web visualization.
|
usable with the web visualization.
|
||||||
7. Install JS libraries and build the webapp:
|
6. Install JS libraries and build the webapp:
|
||||||
`npm install && npm run build:dev` (use `build:prod` in production).
|
`npm install && npm run build:dev` (use `build:prod` in production).
|
||||||
8. Use `python -m flatisfy serve --config config.json` to serve the web app.
|
7. Use `python -m flatisfy serve --config config.json` to serve the web app.
|
||||||
|
|
||||||
_Note_: `Flatisfy` requires an up-to-date Node version. You can find
|
_Note_: `Flatisfy` requires an up-to-date Node version. You can find
|
||||||
instructions on the [NodeJS website](https://nodejs.org/en/) to install latest
|
instructions on the [NodeJS website](https://nodejs.org/en/) to install latest
|
||||||
|
@ -31,7 +31,6 @@ RUN cd /home/user \
|
|||||||
&& git clone https://git.phyks.me/Phyks/flatisfy/ ./app \
|
&& git clone https://git.phyks.me/Phyks/flatisfy/ ./app \
|
||||||
&& cd ./app \
|
&& cd ./app \
|
||||||
&& pip install -r requirements.txt \
|
&& pip install -r requirements.txt \
|
||||||
&& pip install functools32 \
|
|
||||||
&& npm install \
|
&& npm install \
|
||||||
&& npm run build:prod
|
&& npm run build:prod
|
||||||
|
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
appdirs
|
appdirs
|
||||||
arrow
|
arrow
|
||||||
backports.csv
|
backports.csv; python_version < '3.0'
|
||||||
bottle
|
bottle
|
||||||
bottle-sqlalchemy
|
bottle-sqlalchemy
|
||||||
canister
|
canister
|
||||||
enum34
|
enum34; python_version < '3.4'
|
||||||
|
functools32; python_version < '3.2.3'
|
||||||
future
|
future
|
||||||
imagehash
|
imagehash
|
||||||
pillow
|
pillow
|
||||||
|
Loading…
Reference in New Issue
Block a user