code for the https://bonnie.dev website
Code for https://bonnie.dev
GNU AFFERO GENERAL PUBLIC LICENSE
$ cp dotenv_template .env
FLASK_ENV
should be development
$ cd client
$ npm install
$ npm run dev:build
$ pip install pre-commit
# if you don't have it installed globally$ cd server
$ pip install -r requirements.txt
$ pre-commit install
After changes, you can re-build the client with:
$ cd client
$ npm run build
postbuild.sh
will run automatically to move files to the correct place in app$ cd server
$ source .env && python server.py
Note: You will need to re-run npm run dev:build
upon changes to client
$ cd client
$ npm test
$ cd server
$ source .env
$ chmod +x ./run_tests.sh
(make the file executable)$ ./run_tests.sh
$ cd client
$ npm run build
postbuild.sh
will run automatically to move files to the correct place in app$ bash server/scripts/upload_build.sh
bdd-ssh
~/bonniedotdev/server/scripts/bdd-postupload.sh
bdd-ssh
git pull origin main
~/bonniedotdev/server/scripts/update_db.sh
~/bonniedotdev/server/scripts/restart_server.sh