Skip to content

🗝 中华古诗数据库接口( Mongodb + Node.js + Redis + Nginx),接近 5.5 万首唐诗加 26 万宋诗,以及万余唐宋诗人。

License

Notifications You must be signed in to change notification settings

TheHumanComedy/chinese-poetry-website

Repository files navigation

🚧 中华古诗数据库接口网

🗝 中华古诗数据库接口网( Mongodb + Node.js ),涵有近 5.5 万首唐诗、26 万宋诗,以及万余唐宋诗人;数据源于 chinese-poetry-zhCN;网站模板出自 docker-vue-node-nginx-mongodb-redis

Features

  • Powered by Vue2.* & Koa2.* & Mongodb & Nginx & Redis & Docker
  • Integrate Front-End, Back-End, Database into Docker
  • Rich features and constantly optimized design
  • Based on the awesome third-party libraries

Prerequisites

Node.js (>=6.x, 8.x preferred), Npm version 4+(Yarn preferred), Git, Mongodb, Nginx, Redis and Docker.

Getting started

# 🎉 clone the project
git clone https://github.com/TheHumanComedy/chinese-poetry-website.git
# ➕ install dependencies
cd chinese-poetry-website
yarn && yarn bootstrap

# 🚧 start developing
yarn start

# Or Run the following commands in the terminal two different TAB
cd client && yarn start
cd server && yarn start

Migrate Data

# download data souruce
git submodule update --init

# if you change the submodule url
# git submodule sync
# git submodule update --init --recursive --remote
cd data & yarn data:start

The program will automatically open http://localhost:8080/ for client and http://localhost:4000/ for server. Intelligently, it will specify the available port for you (incremental, eg: 8081 or 8082) if port 8080 is busying on your machine.

Deployment

# 🚀 deploy your client & server(local or server)
yarn deploy

# Or Run the following command at root directory
docker-compose up

Links

License

MIT

Copyright (c) 2018-present, 梅林横纵客.

About

🗝 中华古诗数据库接口( Mongodb + Node.js + Redis + Nginx),接近 5.5 万首唐诗加 26 万宋诗,以及万余唐宋诗人。

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •