Flygon Admin
Pre Requisites
Standard Setup
- Clone Repo
git clone https://github.com/UnownHash/Flygon-Admin.git`
- Create the config file
cp config.toml.example config.toml
- Fill out the config file
nano config.toml
- Compile the client
cd client
yarn install
yarn build
- Compile the server
cd ../server
go build
- Run server
./server
Updating
- Pull repo
git pull
- Repeat steps 4-6 from the standard setup
PM2 Setup
- Install PM2
npm install pm2 -g
- Follow steps 1-5 from the standard setup
- From the
server
directory, add to PM2:
pm2 start server --name "Flygon-Admin"
- Save PM2 processes
pm2 save
Updating
- Follow steps 4-5 from the standard setup
- Restart PM2 process
pm2 restart Flygon-Admin
Docker Setup
- Copy docker-compose file
cp docker-compose.yml docker-compose.override.yml
- Fill out the docker-compose.override.yml file, not the docker-compose.yml file
nano docker-compose.override.yml
- Run docker-compose
docker-compose up -d
Updating
docker-compose pull
docker-compose down
docker-compose up -d
Development
Pre Requisites
- Same as above
- gow (Recommended)
Terminal 1
Run the client in dev mode with hot reloading
cd client
yarn install
yarn dev
Terminal 2
Run the server in dev mode with file watching
cd server
gow run . # or go run .