A poem website based on Vue, Element, Express, MongoDB and ElasticSearch
๐ Demo
๐ ไธญๆๆๆกฃ
.
โโโ README.md
โโโ babel.config.js
โโโ dist
โโโ package.json
โโโ postcss.config.js
โโโ public
โย ย โโโ beyond.jpg
โย ย โโโ beyond.mp3
โย ย โโโ favicon.ico
โย ย โโโ index.html
โโโ src
โย ย โโโ App.vue
โย ย โโโ api
โย ย โย ย โโโ http.js
โย ย โย ย โโโ url.js
โย ย โโโ assets
โย ย โย ย โโโ 404.png
โย ย โย ย โโโ bg1.jpg
โย ย โย ย โโโ bg2.jpg
โย ย โย ย โโโ bg404.jpg
โย ย โย ย โโโ bg5.jpg
โย ย โย ย โโโ logo.png
โย ย โย ย โโโ mylogo.png
โย ย โโโ common
โย ย โย ย โโโ js
โย ย โย ย โย ย โโโ poemMethods.js
โย ย โย ย โย ย โโโ webcam.js
โย ย โย ย โโโ style
โย ย โย ย โโโ index.scss
โย ย โย ย โโโ normalize.css
โย ย โโโ components
โย ย โย ย โโโ CoolExplorationCard.vue
โย ย โย ย โโโ Footer.vue
โย ย โย ย โโโ HelloWorld.vue
โย ย โย ย โโโ PoemCard.vue
โย ย โย ย โโโ TagButton.vue
โย ย โย ย โโโ TopBar.vue
โย ย โย ย โโโ musicPlayer.vue
โย ย โโโ element-variables.scss
โย ย โโโ main.js
โย ย โโโ plugins
โย ย โย ย โโโ element.js
โย ย โโโ router
โย ย โย ย โโโ index.js
โย ย โโโ store
โย ย โย ย โโโ index.js
โย ย โโโ utils
โย ย โย ย โโโ axios.js
โย ย โย ย โโโ websiteConfig.js
โย ย โโโ views
โย ย โโโ About.vue
โย ย โโโ CoolFeature
โย ย โย ย โโโ FlyingOrder.vue
โย ย โย ย โโโ shishuo_fm
โย ย โย ย โย ย โโโ HomePage.vue
โย ย โย ย โโโ you_draw_i_guess
โย ย โย ย โโโ Room.vue
โย ย โย ย โโโ RoomList.vue
โย ย โย ย โโโ YouDrawIGuess.vue
โย ย โโโ Home.vue
โย ย โโโ NotFound.vue
โย ย โโโ Search.vue
โย ย โโโ poem
โย ย โย ย โโโ CoolExploration.vue
โย ย โย ย โโโ DailyPoem.vue
โย ย โย ย โโโ ExploreGoodPoetry.vue
โย ย โย ย โโโ Library.vue
โย ย โย ย โโโ Tag.vue
โย ย โโโ user
โย ย โโโ Login.vue
โย ย โโโ Profile.vue
โย ย โโโ Register.vue
โโโ tests
โย ย โโโ unit
โย ย โโโ example.spec.js
โโโ yarn.lock
git clone git@github.com:imricky/shicishuo.git
cd client
yarn installAdd client profile
cd src/utils
touch websiteConfig.jsconst websiteConfig = {
apiUrl: 'http://localhost:3000', // NodeJS Service Address
websocketUrl: 'http://localhost:1234', // websocket Service Address
};
export default websiteConfig;yarn server
// It will start the localhost:8080 portyarn build.
โโโ app.js
โโโ bin
โย ย โโโ www
โโโ config
โย ย โโโ db.js
โย ย โโโ jwtSecret.js There is no backend configuration file on GIT. You need to add it yourself
โโโ dao
โย ย โโโ commonDao.js
โย ย โโโ faceMusicDao.js
โย ย โโโ poemsDao.js
โย ย โโโ userDao.js
โย ย โโโ youDrawIGuessDao.js
โโโ logs
โย ย โโโ error-2020-03-02.log
โย ย โโโ exceptions.log
โโโ models
โย ย โโโ commonModel.js
โย ย โโโ faceMusicModel.js
โย ย โโโ poemsModel.js
โย ย โโโ userModel.js
โย ย โโโ youDrawIGuessModel.js
โโโ package-lock.json
โโโ package.json
โโโ public
โย ย โโโ images
โย ย โโโ javascripts
โย ย โโโ stylesheets
โย ย โโโ style.css
โโโ routes
โย ย โโโ faceMusic.js
โย ย โโโ index.js
โย ย โโโ poems.js
โย ย โโโ users.js
โย ย โโโ youDrawIGuess.js
โโโ utils
โย ย โโโ auth.js
โย ย โโโ elasticsearch.js
โย ย โโโ handledata.js
โย ย โโโ logger.js
โย ย โโโ mongo.js
โย ย โโโ socketio.js
โย ย โโโ spiderFlyingOrder.js
โย ย โโโ tools.js
โโโ views
โย ย โโโ error.ejs
โย ย โโโ index.ejs
โโโ yarn.lock
cd server
yarn installAdd server profile
cd config/
touch jwtSecret.jsconst crypto = require('crypto');
module.exports = {
MD5_SUFFIX: 'xxx',
md5: (pwd) => {
const md5 = crypto.createHash('md5');
return md5.update(pwd).digest('hex');
},
secretKey: 'xxx',
sha1Salt: 'xxx',
faceApiSecretKey: 'xxx', // face++ Secret key
elasticUrl: 'http://localhost:9200', // ElasticSearch
neteaseUrl: 'http://localhost:5000', // Service of Netease cloud music๏ผI deploy on port 5000.
baseImageUrl: 'http://localhost:3000/image/', // static image
};npm i -g pm2
pm2 start bin/www --watch // It will start the localhost:3000 portMongoDB shell version v4.2.2
MongoDB files are relatively large, I don't put it on GitHub.
If you need the files, Please email me.
//mongorestore --db database_name path_to_bson_file
//You don't need to create a new database first, just enter the command at the command line
mongorestore --db poets databaseBackup/poetsElasticsearch is used in the project for full-text retrieval, so you need to deploy elasticsearch, The latest version is 7.x, but I use 6.2.4 which has a big gap.
If your installation is version 6.2.4, I can directly use the elasticdump tool to directly send you files (The files are relatively large, I don't put it on GitHub), you can send email to me to receive the files
But if you are installing version 7.x, you need to import mongodb data into elasticsearch. Please refer to one of my blogs for details
On normal startup, you will see the console print out 'all is well'. If the console is not started normally, 'elasticsearch cluster is down!' will be printed out
It only affect the use of search function
https://binaryify.github.io/NeteaseCloudMusicApi/#/- ๆพๅๅฏ็
- ไธชไบบ่ฎพ็ฝฎ้กต้ข๏ผ้็ฝฎๅฏ็ ๏ผ่ฎพ็ฝฎไธชๆง็ญพๅๅๅคดๅ
- ่ฏ่ฏๆณจ้ๅ่ฝ
- ่ฏ่ฏๅฏ่งๅ
- ็งป้คๆถ่
- ๆ็ๅไฝๅ่กจ
- ๅไฝไธญๅฟ
- ๅไฝ็น่ตๆ้ฎๅ็ป่ฎก
- chinese-poetry
- Vue
- MongoDB
- Element
- ElasticSearch
- NeteaseCloudMusicApi
- Vue-Socket.io
- ChatRoom
- ๅฐไธๆ
- Webcam.js
- stackoverflow
๐ค imricky
- Website: https://rqcao.com
- Github: @imricky
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a โญ๏ธ if this project helped you!
๐ If you have any questions, please email me๏ผ