Skip to content
/ SM Public

Project of the Internet of Mobile System course

License

Notifications You must be signed in to change notification settings

faienz93/SM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mobile Systems

License: MIT

Master Degree in Computer Science
University of Bologna - Alma Mater Studiorum
A.A. 2018/2019

Antonio Faienza
0000798822
[email protected]

Requirements

[MAC/LINUX] NOTE: Create the directory where Mongo will store data, called “db” directory. You can create the directory in the default location by running tutorial:

  • sudo mkdir -p /data/db
  • sudo chown -R `id -un` /data/db

How to Install

  • Clone project

git clone https://github.com/antoniofaienza93/SM.git

cd SM

  • Install npm

npm install

  • Create a custom file .env inside the root of the project:
# Database Name
DATABASE=mongodb://localhost:27017/DATABASE-NAME
  • Run the Database mongod

How to Run

To start the server:

  • npm run start

Development Mode

To start the server in development mode:

  • npm run watch

Debug Mode

To start the server in debug mode:

  • npm run debug

Possible Errors on Windows:

  • self signed certificate in certificate chain
  • [email protected] install: `node-pre-gyp install --fallback-to-build
    • Solution
      • Upgrade node to a stable version: I manually downloaded and installed Windows installer from Node website
      • Install the Windows build tools globally: npm install --global --production windows-build-tools
      • npm install bcrypt --save

About

Project of the Internet of Mobile System course

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published