Skip to content

radio-crestin/radio-crestin-backend

Repository files navigation

Radio Crestin logo

Christian Radio Stations Directory ⚡️


Bundle Size Github Stars Website Status Website Status

Feel free to contribute to this project or get in touch with us at: contact@radio-crestin.com

Obs. This project can be used only by christian organizations for non-comercial purposes.

Group 16 (2)

Development

cd backend
cp ../.env.example .env
make start-dev
sleep 10s
make fresh-install

Production

apt update
apt install -y git make
ssh-keygen -t rsa
git clone git@github.com:iosifnicolae2/radio-crestin.com.git
cd radio-crestin.com/
  
# Installing Docker
apt update
curl https://releases.rancher.com/install-docker/20.10.sh | sh
apt install -y docker-compose

# Configuration (make sure to update all the secrets)
cp ./nginx/nginx.conf.example ./nginx/nginx.conf
cp .env.example .env

make deploy;

# Load Admin Fixtures
make load-admin-fixtures;

# Create a superuser
make create-superuser-production;
  • setup CI/CD:
ssh-keygen -b 2048 -t rsa 
# Add the public key to ~/.ssh/authorized_keys
# Add the following secrets on Github Repo > Settings > Secrets > Actions:
# HOST
# PORT
# USERNAME
# KEY

HLS deployment

  • do all the steps from the Production section
cd hls-streaming
make deploy;