My own blog project.
-
Coding
- Code splitting
- Node.js server-side log
- Unit test
- SPA-Node.js intelligence development environment
- Custom project architecture (include webpack configuration, paths, and e.t.c.)
-
Feature
- Basic content rendering
- Deployment
- Comment modules (and back-end support)
- i18n
- Create
app.config.js
file under root directory - Config
port
andforward
, export as a commonjs module - Run
npm start
or
yarn start
Upload bundle files to Upyun for bootstrap static files.
- Duplicate
upyun.config.example.js
and rename toupyun.config.js
- Replace variables to your own.
- docker-pm2
- Create
app.config.js
and config - Create
pm2.json
and config - Build image
docker build --rm --no-cache=true -t frontend-blog .
- Run
docker run -d --name frontend-blog --restart unless-stopped -p 34001:9002 frontend-blog
- Create
Note: You can use any name of docker images, containers and port as you wish.