Skip to content

ony3000/my-to-do

Repository files navigation

my-to-do

Clone coding: Microsoft To Do
(Replicated the user interface of 2021.)

Requirements

Build Setup

# install dependencies
$ pnpm install

# serve with hot reload at localhost:5000
$ pnpm run dev

# build for production
$ pnpm run build

# launch server in production mode
$ pnpm run start

Production Server Management

  1. Launch server with systemd
# First, you need to fill in the empty WorkingDirectory value in the service file.

# Then do the following:
$ sudo cp my-to-do.service /etc/systemd/system
$ sudo systemctl enable my-to-do.service
$ sudo systemctl start my-to-do.service
  1. Deploy
$ git fetch
$ git checkout (RELEASE_VERSION)
$ pnpm install
$ pnpm run build
$ sudo systemctl restart my-to-do.service