Content-Length: 295725 | pFad | http://github.com/IBonato/SCAUNIFEI/tree/ea617094326c7cc1538179157d1f27bd93365703

B4 GitHub - IBonato/SCAUNIFEI at ea617094326c7cc1538179157d1f27bd93365703
Skip to content

Knowledge sharing application mockup for Universidade Federal de Itajubá - campus Itabira.

License

Notifications You must be signed in to change notification settings

IBonato/SCAUNIFEI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SCAUNIFEI

File sharing system made in Node.js with MongoDB, supporting user register, edit and delete, file upload (by selected users) and download and search by multiple standards. You can see the deployed version on Heroku here: SCAUNIFEI.

Installation

  • Install Node.js, the normal version already comes with NPM

  • Install MongoDB

  • Install all dependencies from the package.json file in the current folder, in the Terminal type the following command (you need a package manager):

npm install
  • Create a folder in your local drive called data and another one inside it called db:
C:\data\db

Usage

  • Create the file db.js in the folder config with the following code:
if (process.env.NODE_ENV == "production") {
    //URL to your Cloud database
    module.exports = { mongoURI: "mongodb+srv://user:password@cluster_name.mongodb.net/database_name?retryWrites=true&w=majority" }
}
else {
    //Local URL to access via Browser (27017 is Mongo default connection PORT)
    module.exports = { mongoURI: "mongodb://user:password@localhost:27017/database_name" }
}
  • Start MongoDB, in the Terminal type the following command:
mongod
  • Create a new database and admin:
mongo

use nameofthedatabase
db.createUser(
  {
    user: "myDatabaseAdmin",
    pwd: "abc123",
    roles: [ { role: "dbOwner", db: "nameofthedatabase" } ]
  }
)
  • Create the files drive_key.json and gmail_key.json in the folder config/google containing the data for authentication with Google APIs.

  • Start the application in another terminal window (nodemon will automatically restart your application every time you make a change in any .js file and save it, if you don't have the package, you can install it globally on your computer with npm install -g nodemon):

nodemon app.js
  • Open localhost:8081 in your Browser and have fun!

License

MIT









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/IBonato/SCAUNIFEI/tree/ea617094326c7cc1538179157d1f27bd93365703

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy