The code can be found at https://github.com/Varunvaruns9/EssentialOilsDatabase Essential oils of Himachal database is a database project which will help maintain the data of plants and the essential oils they contain and help the users to retrieve that information easily using a web application.
-
Clone the project from
https://github.com/Varunvaruns9/EssentialOilsDatabase.git -
Install PostgreSQL
-
Run these commands in
psqlprompt to create the database (Use a different password and username).
CREATE DATABASE oilsdb;
CREATE USER admin WITH PASSWORD 'adminpass';
ALTER ROLE admin SET client_encoding TO 'utf8';
ALTER ROLE admin SET default_transaction_isolation TO 'read committed';
ALTER ROLE admin SET timezone TO 'Asia/Kolkata';
ALTER DATABASE oilsdb OWNER TO admin;
exit
-
Change the database username and password in the
oilsdb/settings.pyfile. Use the same credentials as used in the last step. -
Install the requirements (Preferable if done in a virtual environment).
pip install requirements.txt
- Create the database and create the admin account.
python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser
- Run the tests.
python manage.py test
- Run the server.
python manage.py runserver
Developer documentation can be compiled by going into docs/ folder and using make html command.
The compiled docs can be accessed from docs/_build.
User documentation can be found at the Manual page on the main website or in the manual html template.