Giter VIP home page Giter VIP logo

halosuster's Introduction

HALO SUSTER

A software to help nurses manage medical records. This project is developed using Golang, PostgreSQL, and Docker. We use Gofiber as the main web framework for this project, pgx as the main PostgreSQL driver and golang-migrate for the migration.

To run this project, you need to have Docker installed on your machine. If you don't have Docker installed, you can download it here. For Mac users, we recommend using Orbstack to run your Docker containers since we have a better experience using it.

For the ease of local development, we utilize Docker Compose and Air for hot-reloading. Docker Compose is installed by default if you are using either Docker Desktop or Orbstack on your machine. Please follow through the Air's documentation to install Air on your machine and Docker Compose installation manual if you need to install it manually.

You can run the project using the following command:

docker compose up

Please make sure that the required environment variables was set before running the project. You can set the variables on the .env (.env.dev for local development) file.

You will also need to make sure that golang-migrate is installed on your machine. Please refer to the documentation for more details.

At this stage, you will need to run the migration manually to create the tables on the database. You won't need to do this manually in the next stage. Please use the following command to run the migration:

migrate -database "postgresql://[USER]:[PASSWORD]@[HOST]:[PORT]/[DB_NAME]?connect_timeout=10&application_name=[APP_NAME]&sslmode=disable" -path db/migrate/primary/ up

To add a new migration, you can run the following command:

migrate create -ext sql -dir ./db/migrate/primary/ -tz "Asia/Jakarta" [MIGRATION_NAME]

halosuster's People

Contributors

nozzlium avatar

Watchers

 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.