https://github.com/varunvaruns9/essentialoilsdatabase
A database for various plants and essential oils present in Himalayan region.
https://github.com/varunvaruns9/essentialoilsdatabase
django postgresql python
Last synced: 2 months ago
JSON representation
A database for various plants and essential oils present in Himalayan region.
- Host: GitHub
- URL: https://github.com/varunvaruns9/essentialoilsdatabase
- Owner: Varunvaruns9
- Created: 2019-10-16T06:24:52.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-04-21T20:38:53.000Z (about 3 years ago)
- Last Synced: 2025-03-01T16:14:18.296Z (over 1 year ago)
- Topics: django, postgresql, python
- Language: Python
- Size: 1.4 MB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Essential Oils Database
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.
## Installation instructions
1. Clone the project from `https://github.com/Varunvaruns9/EssentialOilsDatabase.git`
2. Install [PostgreSQL](https://www.postgresql.org/download/)
3. Run these commands in `psql` prompt 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
```
4. Change the database username and password in the `oilsdb/settings.py` file. Use the same credentials as used in the last step.
5. Install the requirements (Preferable if done in a virtual environment).
```
pip install requirements.txt
```
6. Create the database and create the admin account.
```
python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser
```
7. Run the tests.
```
python manage.py test
```
8. Run the server.
```
python manage.py runserver
```
## Documentation
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.