Antonio Faienza |
---|
0000798822 |
[email protected] |
- Node.js
- Express.js
- Bootstrap
- OpenLayers
- MongoDB
- (Eventually install MongoDB Compass)
[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
- 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
To start the server:
npm run start
To start the server in development mode:
npm run watch
To start the server in debug mode:
npm run debug
self signed certificate in certificate chain
- Solution
npm set strict-ssl false
- Solution
[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
- Solution