AllTastesMatter was deployed on https://altama.shop.
(The server is not currently running. Pleaes run it on local environment!)
The project runs on Linux environments, and uses yarn for local builds-yarn must be installed on your local machine. To install yarn, run: on the shell. Test whether yarn is installed by running:
yarn --version
If yarn is ready, move to src/frontend in the shell, and run:
yarn
to install all the modules the project requires. If module installation is complete, run:
yarn start
to start up the frontend server on your local machine. When the server is ready, it would automatically load the initial frontend state(the sign-in page).
Sign up is needed if you want to check the real services. However, you will run into 'CheckUser Error' when trying to sign up with only frontend running.
Now you need to run the backend. To run backend, follow these steps.
- Activate your django environment
- Open the swpp2020-team5/backend/AllTastesMatter/setting.py with editor
- Change the ALLOWED_HOSTS = [] to ALLOWED_HOSTS = ['local host'] and save.
- move to swpp2020-team5/backend/ and run:
python manage.py runserver
- If it requires to install some package, install the package and try it again.
For example, if you are required to install django_extensions, run:
pip install django_extension
Now you can sign up from the site and test the services. Enjoy!