Giter Club home page Giter Club logo

dda-pharmacy-management's Introduction

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

dda-pharmacy-management's People

Contributors

mageswaran1989 avatar prajapati-pawan avatar sowmiya-vs avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.