bliss/README.md

1.1 KiB

Installing

Requirements

  • node version 16.16.0 or higher
  • pm2 globally installed
  • yarn globally installed
  • caddy globally installed

Backend Installation

Copy and paste the following into your terminal:

git clone https://github.com/renzynx/bliss.git

cd bliss/api

cp .env.example .env

Fill in the .env file with the appropriate values.

yarn install

yarn build

pm2 start "yarn start:prod" --name "bliss-api"

Frontend Installation

Copy and paste the following into your terminal:

cd ../web

cp .env.example .env

Fill in the .env file with the appropriate values.

yarn install

yarn build

pm2 start "yarn start" --name "bliss-web"

Domain name and SSL configuration

If you don't have caddy installed already Click Here

Copy and paste the following into your terminal:

You need to replace the placeholder with your actual domain name and port.

sudo caddy reverse-proxy --from https://yourdomain.com --to localhost:frontend-port
sudo caddy reverse-proxy --from https://api.yourdomain.com --to localhost:backend-port