- This is a social image-sharing site developed using MEAN technologies.
- This app is designed to run in multile ways.
- This app support Unit Testing see below.
This app is designed to be run in different ways:
- As a standalone app running on your machine.
- run
git clone https://github.com/AhmNouira/imgUploader.io
to clone the GitHub repository. cd imgUploader.io
cd to imgUploader folder.- install node.js or run
sudo apt-get install nodejs
. - run
node -v && npm -v
to check if nodejs and npm are installed and prints their versions. - install the app dependices by running
npm install
. - install MongoDB database
sudo apt-get install mongodb
. - run
mongo
and see if your database is installed. - to run the server
npm start
.
- open your Terminal and the following commands
mongo // open mongoDB shell
show dbs // display your databases
use imgUploaderDB // select the application database
db.printCollectionStats() // print the stats of the db collections
db.images.find().pretty() // **display the images collections data**
db.comments.find().pretty() // **display the comments collections data**
- run
npm test
.