This is my very first website project to front-end side.
Tech perspectives:
- Multi-entry webpack
- Write a replace image path webpack plugin
- Implement OAuth 2.0 and API keys to authorize user.
- Implement Google Sheet API
- Test dynamic import component by webpack.
- Node v10.16
- npm v6.9
- Create .env file
# ./client/.env
MAP_BOX_TOKEN=<Mapbox token>
GOOGLE_SHEET_API_KEY=<Google Sheet API with API keys>
GOOGLE_CLIENT_ID=<Google OAuth 2 Client Id>
GOOGLE_SPREAD_SHEET_ID=<Google Spread Sheet ID>
REFRESH_TOKEN=<Google OAuth Refresh Token>
- Install dependence
# ./client
npm i
- Create .env file
# ./server/.env
PORT=5000
CLIENT_ID=<Google OAuth 2.0 Cliend ID>
CLIENT_SECRET=<Google OAuth 2.0 Cliend Secret>
- Install dependence
# ./server
npm i
# ./client
npm start
# ./client
npm run build
# ./server
npm run server
- Webpack 4
- Babel 7
- Pug
- SASS
- jQuery
- ESlint
- Prettier
- Image hosting: AWS S3
- Secret data handler: dotenv
- Google OAuth 2.0
- Express.js