โ๏ธ Our Project Page
์๊ฐ ์๋น ๋ฐ ์ง์ถ์ ๋ํ report๋ฅผ ์์ฑํ๊ณ , ๋ด์ญ ๋ฐ ์๋ณ/์นดํ ๊ณ ๋ฆฌ๋ณ ํต๊ณ๋ฅผ ํ์ธํ ์ ์๋ ๊ฐ์ธ ๊ฐ๊ณ๋ถ ์๋น์ค.
- Observable
- Client Routing
- Passport
- Oauth
- Automatic deploy
- Data visualization
git clone https://github.com/woowa-techcamp-2020/hkb-13
cd hbk-13
npm install
Follow config.example.js
to config
folder
const config = {
DB_HOST: '',
DB_NAME: '',
DB_USER: '',
DB_PW: '',
}
module.exports = { config }
Follow githubPassport.example.js
to config
folder
const githubConfig = {
CLIENT_ID: '',
CLIENT_SECRET: '',
CALLBACK_URL: 'http://13.125.215.184:3000/login/github/callback',
}
module.exports = { githubConfig }
Follow googlePassport.example.js
to config
folder
const googleConfig = {
CLIENT_ID: '',
CLIENT_SECRET: '',
CALLBACK_URL: 'http://localhost:3000/login/google/callback',
}
module.exports = { googleConfig }
start both server and client
npm start
start server
npm run start:server
start client
npm run start:client
build production artifacts
npm run build
Then, you can access to your server http://localhost:3000/
Frontend
Backend
ETC
|--hkb-13
|-- dist
|
|-- public
|
|-- src
| |-- client // Frontend
| | |-- api // Client API ๊ด๋ จ ํ์ผ ๋ชจ์
| | |
| | |-- models // observer ํจํด ๋ชจ๋ธ ํ์ผ
| | |
| | |-- scripts
| | | |-- calendar
| | | | ... // ์บ๋ฆฐ๋ ํ์ผ ๋ชจ์
| | | |
| | | |-- navigation
| | | | ... // ๋ค์ด๊ฒ์ด์
ํ์ผ
| | | |
| | | |-- notFound
| | | | ... // ์ค๋ฅ ํ์ผ
| | | |
| | | |-- reportsList
| | | | ... // ๊ฑฐ๋๋ด์ญ ํ์ผ ๋ชจ์
| | | |
| | | |-- store
| | | | ... // ์ต์ ๋ฒ ํจํด ํ์ผ ๋ชจ์
| | | |
| | | |-- statistics
| | | | ... // ํต๊ณ ํ์ผ ๋ชจ์
| | | |
| | |
| | |-- styles
| | | |
| | | |-- components
| | | | ... // ์ปดํฌ๋ํธ๋ณ ์คํ์ผ
| | | |
| | |
| | |-- utils
| | | ... // ๊ณตํต ์ฌ์ฉ ํจ์ ๋ชจ์
| | |
| | |-- views
| | | ... // html ํ์ผ
| | |
| |
| |-- config // database, passport config ํ์ผ ๋ชจ์
| |
| |-- server // Backend
| | |
| | |-- controller
| | | ... // ๋ผ์ฐํฐ ์์ฒญ์ ๋ฐ๋ฅธ ์์
์ฒ๋ฆฌ
| | |
| | |-- model
| | | ... // ๋ฐ์ดํฐ๋ฒ ์ด์ค ์์
์ฒ๋ฆฌ
| | |
| | |-- router
| | |