Giter Site home page Giter Site logo

telenurse's Introduction

TeleNurse

Telenurse is a logistic project for providing healthcare and nursing. It will be very useful to have an integrated system so that both job seekers and people who need nursing and medical services at home can use it and communicate easily with each other. In order to ensure the users of this system, this system should be implemented in such a way that the supervisors and managers in the support center are always aware of the status of all nurses and if there is a problem, they will deal with it as soon as possible.

Run the project

First, you need to have Docker installed. Then follow steps below:

  1. Build your docker image using:
$ make build
  1. Generate the SQL commands for preinstalled apps using:
$ make makemigrations
  1. Execute those SQL commands in the database file using:
$ make migrate
  1. Create you admin with full access using:
$ make superuser
  1. Run your server using:
$ make runserver
  1. Finally, open your browser and go to address below to see the project on your localhost.
  • Other commands are available in Makefile.
  • In case of any errors in building images, turn on your VPN.

Run the tests

To test your code based on test.py files which include the tests you have written, run below command:

$ make tests

Development Notes

  • If you want to run manage.py commands locally and connect to postgis running on docker, add following line to /etc/hosts:
127.0.0.1 postgres-db
  • Only run postgres service:
docker-compose up --build -d postgres-db

Database backup

The database can be backed up automatically every 12 hours using pgbackups service defined in docker compose.

Check image's github page for more info about configuration.

Restore example:

Run the following command to make a new postgres container:

docker run --rm -it --name restored-db -v $PWD/postgres_backups/daily/telenurse-20220103-143546.sql.gz:/tmp/backupfile.sql.gz kartoza/postgis:12.1 

Get into the container's shell:

docker exec -it restored-db /bin/sh 

Run the following command on the container:

zcat /tmp/backupfile.sql.gz | PGPASSWORD=docker psql --host=127.0.0.1 --port=5432 --username=docker --dbname=postgres

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.