bs32g1038/node-blog
关于
🔥✨ A react blog project base on nodejs, nestjs, mongoose, typescript, react, ant-design,nextjs
网站与应用开发可以做什么
- 🌙☀ Theme: Support light and dark themes
- 🐐 APi: Node-blog through Nodejs and express provide the Restful API
- 🚜 Database: Data stored in Mongodb,Driven by Mongoose
- 🔨 Powerful build: Use powerful webpack to build projects
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Node Blog
💨 A simple, fast and easy-to-use blog 🚀
⚠️ Caution: Working in progress - It's not production ready 🚧
Features
- 🌙☀ Theme: Support light and dark themes
- 🐐 APi: Node-blog through Nodejs and express provide the Restful API
- 🚜 Database: Data stored in Mongodb,Driven by Mongoose
- 🔨 Powerful build: Use powerful webpack to build projects
- 🍓 Framework support: React, Ant design, Express, Typescript, ...
- 🌲 Nextjs: Support server-side render
- 📲 Responsive: Responsive layout for mobile-side
- ⚙️ Best Practices: Solid workflow to make your code healthy
- ......
Structure
ROOT
│
├─server // provide blog server api, based one nodejs, mongodb
│
client // client ui
│
├──web // front-end ui
│
├──admin // admin ui
│
├─docker-compose.yml // docker-compose config file
Todo
- Article tags
- Writing new article in browser
- Comments
- Search support
- Mobile web support
- Light theme & Dark theme
- Article draft record
- Other support ...
Development
1,clone code
git clone https://github.com/bs32g1038/node-blog.git
2,install
cd **
npm install
3,init database data
// this will generate the faker data to database
npm run init:dev:data
4,run app
npm run dev // development mode
4, build dist
npm run build // build dist for server and client
Deploy
The project has integrated related suites, such as client ui, dockerfile, docker-compose.yml. So you can easy to deploy the project.
First: I recommend that you debug locally and make changes to configuration information, such as database information and personal information.
Secondly: you can choice the docker to deploy this project. It is very esay. you only
pullthe project to your server and installdocker, and rundocker-compose buildcommand, and rundocker-compose up -dcommand
However!!!⚠
If you don't want to use docker, you must to cd the current item and run npm install or yarn install command.
At the same time, when finish install, you need to run npm run start:prod command.
Besides, you may need to install mongodb,before you run the application.
Environment dependence
Operating System: Linux, OS X or Windows.
Node.js Runtime: 20.x or newer; it is recommended that you use LTS Releases.
database: mongdb 5.x or newer;
Browsers support
Modern browsers.
Edge |
Firefox |
Chrome |
Safari |
Opera |
|---|---|---|---|---|
| Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions |
Thank you:
If you think these contents are useful to you, please add a "Star" at the top right. This is the encouragement to me, thank you!
License
MIT
探索相关项目
加载中…