Skip to content

febryanmz/RawatInap

 
 

Repository files navigation


Logo

Rawat Inap

An app where you can get hospital bed capacity information in real time, accurate, and transparant.
Explore the docs »

Report Bug · Request Feature

Table of Contents
  1. Features
  2. Getting Started
  3. License
  4. Contact

Features

  • User:
    • User can register;
    • User can login;
    • User can update their proile;
    • User can delete their profile;
    • User can register patient(s);
    • User can update their registered patient(s)'s information;
    • User can delete their registered patient(s)'s information;
    • User can find hospital based on name or location;
    • User can get bed capacity information of selected hospital;
    • User can create registration for hospital bed for himself or his registered patient(s);
    • User can find and select their desireable policlinic for medical check-up;
    • User can create registration for medical check-up for themself or their registered patient(s).
  • Admin:
    • Admin can create bed information;
    • Admin can update bed information;
    • Admin cad delete bed information;
    • Admin can create doctor information;
    • Admin can update doctor information;
    • Admin can delete doctor information;
    • Admin can create policlinic information;
    • Admin can update policlinic information;
    • Admin can delete policlinic information;
    • Admin can create policlinic daily practice information;
    • Admin can update policlinic daily practice information;
    • Admin can delete policlinic daily practice information;
    • Admin can admit patient bed registration;
    • Admin can assign a bed for hospitalized patient.
  • Super Admin:
    • Super Admin can create hospital information;
    • Super Admin can update hospital information;
    • Super Admin can delete hospital information;
    • Super Admin can create admin account.

(back to top)

Entity Relationship Diagram

Rawat-Inap-ERD Rawat-Inap-ERD

(back to top)

Built With

Golang   Visual Studio Code   Google  GCP  midtrans  s3  MySQL  Docker  Swagger  Postman  Cloudflare 

(back to top)

Getting Started

Installation

  1. Clone the repo
    git clone https://github.com/KamarRS-App/BackEnd.git
  2. Move to project directory:
    cd BackEnd/
  3. Create your environment in .env and change its variable value with your desired value
    echo "
    export DB_USERNAME="YOUR DB USERNAME"
    export DB_PASSWORD="YOUR DB PASSWORD"
    export DB_HOST="YOUR HOST ADDRESS"
    export DB_PORT="3306"
    export DB_NAME="YOUR DB NAME" 
    export SERVER_PORT="YOUR DESIRE PORT"
    export MIDTRANS_MERCHANT_ID="YOUR MIDTRANS MERCHANT ID"
    export MIDTRANS_CLIENT_KEY="YOUR MIDTRANS CLIENT KEY"
    export MIDTRANS_SERVER_KEY="YOUR MIDTRANS SERVER KEY"
    export AWS_REGION="YOUR AWS REGION"
    export ACCESS_KEY_IAM="YOUR ACCESS KEY IAM"
    export SECRET_KEY_IAM="YOUR SECRET KEY IAM"
    export AWS_BUCKET_NAME="YOUR AWS BUCKET NAME"
    export EMAIL_PASSWORD="YOUR EMAIL PASSWORD FOR SMPT SEND EMAIL"
    export EMAIL_FROM="YOUR EMAIL ADDRESS FOR SENDING EMAIL"
    export JWT_SECRET="YOU STRING SECRET FOR JWT"
    export GOOGLE_OAUTH_CLIENT_ID="YOUR GOOGLE OAUTH CLIENT ID FOR LOGIN OAUTH"
    export GOOGLE_OAUTH_CLIENT_SECRET="YOUR GOOGLE OAUTH CLIENT SECRET"
    export GOOGLE_OAUTH_CLIENT_SECRET1="YOUR GOOGLE OAUTH CLIENT ID1 FOR CALENDAR"
    export GOOGLE_PROJECT_ID="YOUR GOOGLE PROJECT ID FOR OAUTH LOGIN"
    export GOOGLE_PROJECT_ID1="GOOGLE_PROJECT_ID1 FOR CALENDAR"
    export GOOGLE_OAUTH_CLIENT_ID1="YOUR GOOGLE OAUTH CLIENT ID1 FOR CALENDAR"
    " > .env
  4. Run Project
    source .env && go run main.go

(back to top)

Documentation

open-api-swagger For more examples, please refer to the OPEN API

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Contact

Aziz Email-Aziz

Teguh Email-Teguh

Febryan Email-Febryan

(back to top)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 99.6%
  • Other 0.4%