diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2021-09-07 17:16:38 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2021-09-07 17:16:38 +0200 |
| commit | 3bf200cb4339e906b944d55451cfacc8aa33bb01 (patch) | |
| tree | f0da6480d866b907cae7b258a3e56a1a7b827aae /README.md | |
| parent | 30aff969375213db8c66af5f108496f465057787 (diff) | |
comment everything and add notes on working on the last museum
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 44 |
1 files changed, 18 insertions, 26 deletions
@@ -13,30 +13,12 @@ yarn install (this should work on Linux as well but let me know if it doesn't) -## Running the site - -Before running the commands, enter the client directory, load the Conda environment, and make sure the database is current: - -``` -cd cli -conda activate swimmer -./cli.py db upgrade head -``` - -Then build the frontend and run the Flask server: - -``` -yarn build:dev -yarn server -``` - -The server will be running on http://0.0.0.0:5000/ - ## Development Monitor the Javascript for changes (run in another window): ``` +nvm use v12 yarn watch ``` @@ -55,18 +37,28 @@ yarn demo To programmatically create pages, modify `cli/commands/site/populate.py` -## Customizing builds +## Running the site -If the functionality of the live site needs to change, make a new router and go from there. See `frontend/site/projects/museum/app.js` for an example. +Before running the commands, enter the client directory, load the Conda environment, and make sure the database is current: ``` -# Building the Last Museum site (development) -yarn build:museum:dev +cd cli +conda activate swimmer +./cli.py db upgrade head +``` + +Then build the frontend and run the Flask server: -# Deploying the Last Museum site (production) -yarn build:museum:production -rsync -rlptuvz ./data_store/exports/thelastmuseum/ lens@garden:swimmer/data_store/exports/thelastmuseum/ ``` +yarn build:dev +yarn server +``` + +The server will be running on http://0.0.0.0:5000/ + +## Customizing builds + +If the functionality of the live site needs to change, make a new router and go from there. See `frontend/site/projects/museum/app.js` for an example. To customize the built site HTML, create files in `data_store/content/{graph_path}`: |
