Web application that implements a digital repository of publications of ideas, photos and other components that users want to share or simply store to access later.
It was developed in the course of Web Applications Development at University of Minho.
Structured in 5 main folders:
- controllers: operations on the data structure
- files: contains 2 json files that correspond to 2 collections on the database
- models: application's data structure
- routes: application's endpoints (URIs)
- views: application's frontend
The server is fetching data from MongoDB (listening on port 27017 in localhost).
Is fetching data from port 2018 in localhost.
Install MongoDB on your machine and make sure it's running correctly.
On the mongo shell, create the database myFacebook:
>use myFacebook
switched to db myFacebook
Then, create the collections utilizadores and items:
>db.createCollection("utilizadores")
{ "ok" : 1 }
>db.createCollection("items")
{ "ok" : 1 }
On your command line, inside the folder myFacebook, make:
npm install
Followed by:
npm start
The application is now running and available in http://localhost:2018.