Skip to content

BITS Pilanai MTech Software Systems Semester 1 - Database Design and Application

License

Notifications You must be signed in to change notification settings

Mageswaran1989/dda-pharmacy-management

Repository files navigation

dda-pharmacy-management

BITS Pilanai MTech Software Systems Semester 1 - Database Design and Application

Conda Environment

conda create --name dda python=3.8
source activate dda

brew install postgresql # for mac
sudo apt-get install libpq-dev python-dev # for ubuntu

# for reference  
  brew services start postgresql # to start postgresql on Mac natively
  brew services stop postgresql # to stop postgresql 

pip install -r requiremetns.txt

How to run?

Postgresql DB Server Setup

cd docker
docker-compose up # to see logs
docker-compose up -d # to run in the background

If you are already running a instance and wanted to have clean restart:

cd docker
docker-compose down
docker volume rm docker_db

Once everything works, you should see following log on the terminal: db_1 | 2022-07-27 12:06:04.713 UTC [1] LOG: database system is ready to accept connections

Use any DBclinet to connect to the Postgresql Server, wit following credentials:

username: postgres
password: postgres
database: postgres

Streamlit

export PYTHONPATH=$(pwd):$PYTHONPATH 

python pms/hash_password.py --password admin

streamlit run pms/Home.py

References

Streamlit

Postgresql

Error

About

BITS Pilanai MTech Software Systems Semester 1 - Database Design and Application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages