Skip to content

BoboiAzumi/MySK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Diagram Architecture

Installation

Prerequisite

Software version
Operating System Ubuntu ^22.04
Docker ^27.4.1
Postgresql ^16.6

Clone repository

git clone https://github.com/BoboiAzumi/MySK

Setup Backend

Update backend-service/.env.docker

# Environment variables declared in this file are automatically made available to Prisma.
# See the documentation for more detail: https://pris.ly/d/prisma-schema#accessing-environment-variables-from-the-schema

# Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB.
# See the documentation for all the connection string options: https://pris.ly/d/connection-strings

# Only change postgresql user and password, don't change postgresql host, port, and db
DATABASE_URL="postgresql://postgres:<your password>@172.17.0.1:5432/mysk?schema=public"
HOST="localhost:3000"

# Recomended to change JWT_SECRET for more security
JWT_SECRET="mysk"

You can using external postgresql server

DATABASE_URL="postgresql://postgres:<your password>@your.postgresql.domain:5432/mysk?schema=public"

Change the JWT_SECRET for more security

JWT_SECRET="<NEW JWT SECRET>"

Setup Frontend

Update frontend-service/.env

VITE_ENVIRONMENT="DEVELOPMENT"
VITE_BACKEND_URL="http://www.abcd.com"

Change VITE_ENVIRONMENT into PRODUCTION for deploying, or change into SPLIT if deploy in separate server.

If you change VITE_ENVIRONMENT into SPLIT you should change VITE_BACKEND_URL.

Deploy

If all prerequisite and configuration already done, you can deploy this project by only command

sudo docker compose up -d

This project will running in port 3000

http://localhost:3000

http://0.0.0.0:3000

Shutdown

You can shutdown and delete all running service by command

sudo docker compose down --rmi "all"

File Store

All files will store in

/var/mysk

About

Manajemen Surat Keputusan (SK)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages