This project version as a private project was originally contrtolled by GitLab. Now it becomes open-source repository in GitHub. It has already been deployed at https://tripinterest.tk
The travel website project is dedicated to build a platform for users to share their trip experiences and stories, which consists of the following two repositories:
- travel_website_client
- travel_website_server
Main Features include reading users diaries, posting article, basic authentication, users registration,searching,comments,profile setting, resetting password,uploading avatar,instant message and more.
Here is the server side, which is used to design RESTful API
for the client side and do CURD
data operation in the database.
built with
- express ~4.16.0
- mongoose ^5.4.3
- async ^2.6.2
- blueimp-md5 ^2.10.0
- cookie-parser ^1.4.3
- socket.io ^2.2.0
The project runs in Nodejs environment. it requires:
Note: The server project needs to work with travel website client , Please make sure MongoDB service is running.
$ git clone https://github.com/Hui0820/TravelWebsite_server
$ cd TravelWebsite_server
$ npm install
$ npm run
the development mode will be running at localhost:3001
Step 1: In the travel website client project, using the following to build the whole client side package into a build
directory.
$ npm run-script build
Step 2: Create a client
directory in the home path, Move the whole build
directory from travel website client project under the client
dirctory in travel website server project.
Step 3: Set the static path in app.js
app.use(express.static(path.join(__dirname, 'client/build')));
Test the whole project at localhost:3000 or localhost:3001
This project is under GNU/GPL
license.