~/holiday_acres$ nvm use
~/holiday_acres$ cd ui
~/holiday_acres/ui$ yarn
~/holiday_acres/ui$ yarn dev
Python Poetry is used for package management. That link will bring you to the instructions page for installing for Windows or Unix.
Depending on your system's python --version
you may need to update in order to install the correct version of poetry
. It's best if you're in python 3.9
On Mac install, if you get the error:
[SSL: CERTIFICATE_VERIFY_FAILED]
You may need to create a symlink from the OS certs to python.
yarn is used to manage JS packages used for linting and pre-commit hooks. This can usually be installed directly via npm
:
npm install --global yarn
After installing yarn
, simply run:
$ yarn
to install the required JS packages.
Copy the existing .env.example
to .env
~/api$ cp .env.example .env
Currently only setup to use SQLite. Run poetry run manage.py migrate
to put in base tables.
yarn prisma migrate dev
poetry run manage.py createsuperuser --email admin@example.com --username admin
Using password "testing".
After running the initial migration, run
~/holiday_acres/api$ poetry run python manage.py loaddata holiday_acres_api/seeds/0001_initial_seed.json
To seed the DB with initial data.
Tests are located in ~/api/holday_acres_api/tests
. To run them, you have to be in the ~/api
folder and then invoke command poetry run pytest
.
- Install ngrok and create an account
- Head over to the ngrok token page and follow the instructions to set your ngrok token.
- Install Docker
- Start up Docker images with
docker-compose up
- Run
ngrok
withngrok http 8080