Skip to content

Hui0820/TravelWebsite_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Travel website sever

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

Getting Started


Prerequisites

The project runs in Nodejs environment. it requires:

Installing

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

Deploying

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')));

Testing

Test the whole project at localhost:3000 or localhost:3001

Licensing


This project is under GNU/GPL license.

About

A travel website server side built with Express and MongoDB

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published