Skip to content

johnny990628/GHL_Backend

Repository files navigation

GHL_Backend

GHL_Backend is a noSQL-based NodeJS server for managing the medical reports built on Express .

TODO List

Requirements

Installation

Step1-Clone the repo

git clone https://github.com/johnny990628/GHL_backend
cd GHL_backend

Step2-Install dependencies

npm install

Step3-Configuration

Modify your .env file in root folder

dotenv template

PORT="3090"
DB_URL="mongodb://localhost:27017/ghl"
WEB_ORIGIN_URL="http://localhost:3091"
JWT_SECRECT_KEY="your jwt secrect key"

Step4-Deploy

node server.js

API Documentation

Visit this URL after you deployed the server

port 3080 should match your .env config

Deploy with Docker

最新版Docker部署方式已遷移至以下Repo

不再維護的Dockerfile建置參考指令

git clone https://github.com/johnny990628/GHL_backend.git
cd GHL_backend
build-docker-image.bat
docker run -d -p 3090:3080 --name GHL_Backend -it --restart=always ghl_backend

使用Docker的注意事項

  • 如果你已經在Local端成功架設前後端並且順利登入,請記得要登出後再執行前後端的Docker Container,否則你的前端會無法順利運作

Author 🎉

johnny990628

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published