Representational state transfer (REST) server using Express.js and MongoDB. This server is written in Node.js and using some libraries or frameworks like MongoDB as the server database (with mongoose as the client library) and Express.js as the HTTP framework. This server uses HTTP methods to handle the requested CRUD operation, then process it to the MongoDB database.
We created this project as part of the Smart Tourism project that consists of several parts like REST server, card scanner device, administrator website, and location's direction app. Smart Tourism project is a system for smart tourism that improves the impression of tourism sites using an electronic card to enter and exit locations, a website that monitors and show statistic for each location, and AR app for visitors to show location's direction. This project is undertaken to fulfill the Telematics Projects course in the Computer Engineering department of Sepuluh Nopember Institute of Technology.
- Install Node.js as in their official guide.
As an alternative, you may install Node.js using the NVM.
- Install MongoDB as in their official guide.
- Install Yarn as in their official guide.
If you don't want to use Yarn, you may skip this step and use NPM instead.
- Open this project directory in terminal, and initialize the dependencies.
$ yarn install
- Run the server using the following command.
$ yarn start
(Optional), after filling some data, you may run
$ yarn fill
to automatically fill the visitation data.