The purpose of this project was to create a website that compares the total number of likes of the pictures of each of the contestants and determine who has more likes.
If you click the "Show most liked pic" button the page will show the picture with most likes of the total of instagram users that have participated.
To get a copy of these repository install git bash, open it from the command line and use $ git clone: https://github.com/ne-cabrera/web-dev-exam1.git
Then, open the root directory and run
$ npm install
Open the frontend folder and run npm install again.
NodeJs, npm, express, and mongo, jwt library and bcrypt library are needed to run this proyect. You can go to nodeJs' web site and dowload the installer: https://nodejs.org/es/ Be sure to select the install npm option and the addToPATH option during the installation process.
Secondly, install mongoDB in your local environment. Follow the instructions on the link below to get it:
https://docs.mongodb.com/manual/administration/install-community/
It´s recommended to have yarn installed, because it makes the use of the React front-end easier. To install it use:
$ npm install -g yarn
Checklist
NodeJS
MongoDB
Yarn
Go to the root directory and run the npm install command.
$ npm install
Go to the frontend directory and run the npm install command.
$ cd front
$ npm install
Return to the root dirctory and run nodemon server.js
Go to the root directory and run the npm start command.
$ npm start
Go to the front directory and run the npm install command.
$ cd front
$ npm start
Return to the root dirctory and run nodemon server.js
- React - The javascript library used to develop the front-end.
- NPM - Dependency Management
- Express - The web framework used.
- MongoDB - The databased used.
- Nicolás Cabrera - ne-cabrera
This project is licensed under the MIT License - see the LICENSE.md file for details