A frontend to Scheduler, built with NextJS
- Install git
sudo apt install git
- Install Docker (if not building from source)
- Install docker
curl -sSL https://get.docker.com | sh
- Allow Docker to be used without being a root
sudo usermod -aG docker $USER
- Restart
reboot
- Install docker
- Create the container
docker container create \ --name scheduler_container \ -v /sys:/sys \ -p 8000:8000 \ -e TOKEN_KEY=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 50) \ mohamednehad450/scheduler-frontend
- Start the container
docker start scheduler_container
NOTE: building the image will use the pre-built image of Scheduler
- Clone this project
git clone https://github.com/mohamednehad450/Scheduler-Frontend.git cd Scheduler-Frontend
- Build the image
docker build -t scheduler-frontend .
- Create the container
docker container create \ --name scheduler_container \ -v /sys:/sys \ -p 8000:8000 \ -e TOKEN_KEY=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 50) \ scheduler-frontend
- Start the container
docker start scheduler_container
-
Clone this project
git clone https://github.com/mohamednehad450/Scheduler-Frontend.git cd Scheduler-Frontend
-
Install dependencies
npm install -g pnpm pnpm i
-
Build the project
pnpm run build
-
Start the server
pnpm run start
OR to export as a static site
pnpm next export