Todo fullstack.
MIT License
todo front & back
Note: this setup was tried out on Ubuntu LTS 18.04
ubuntu:~/environment/todo/client (master) $ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic
Make sure you have installed latest version of node
(v12.3.0) and yarn
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash # install nvm
$ export NVM_DIR="$HOME/.nvm"
$ [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
$ [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
$ nvm install node
$ npm install -g yarn
$ git clone https://github.com/9oelM/todo.git
yarn
$ cd client
$ yarn
$ yarn start
$ yarn build
$ yarn start|build|test|eject|lint
yarn
$ cd server
$ yarn
$ sudo apt update
$ sudo apt install mongodb
# check running
ubuntu:~/environment/todo (dev-server) $ sudo systemctl status mongodb
● mongodb.service - An object/document-oriented database
Loaded: loaded (/lib/systemd/system/mongodb.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2019-05-22 05:05:36 UTC; 5s ago
Docs: man:mongod(1)
Main PID: 14355 (mongod)
Tasks: 23 (limit: 4915)
CGroup: /system.slice/mongodb.service
└─14355 /usr/bin/mongod --unixSocketPrefix=/run/mongodb --config /etc/mongodb.conf
May 22 05:05:36 ip-172-31-37-115 systemd[1]: Started An object/document-oriented database.
$ su # Depending on your system, you may need to log on as a superuser if you need an elevation in privilege.
$ cd server
$ yarn start
apt-get update
apt-get upgrade
apt-get install screen
screen
Then you are going to get another screen.
yarn prod
to launch the server with forever
.
View log with forever
:
yarn prod:log
Stop the server:
yarn prod:stop
Type Ctrl + A
, and then Ctrl + D
to detach from the current screen.
You can now close the ssh terminal. The server will not terminate until you again connect via ssh and close the detached session.
Kill the detached sessions (shut down the server):
screen -ls | grep pts | cut -d. -f1 | awk '{print $1}' | xargs kill
$ yarn start|lint
● 기능 요구사항
● 성능 요구사항
● 인터페이스 요구사항
제출물 ● 소스 코드가 담긴 github URL
● 접속하여 테스트 가능한 URL