Skip to content

jsbarragan796/instafight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instafight

Description

This is a web application let you make a fight between instagram accounts, who has the most number of recent likes wins, let the fight begin!!. This was my midterm exam of my sprint 2018 Web development at Uniandes.

Creative addition

What make this webside original is that you can not only fight with two users but with as many as you wish, also there is a direct link to view the instagram account of the winner.

Getting Started

The following instructions will get you a copy of the project up and running on your local machine for development, testing purposes or grading the exam.

Prerequisites

In order to run this project you need to have installed npm and mongodb.

Installation

Once you clone or download the project use the Terminal prompt and change the directory to the project folder cd ./instafight .

Then install backend node dependencies

npm install

Then install react frontend node dependencies

cd frontapp
npm install

This project uses Environment Variables to connect to the db. So at the project's root directory create a .env file following the next structure.

PORT=5000

I did upload my credentials to my data base however you can go to the instafight/routes/index.js and comment the admin env and uncomment the read only access. If you use want to use your own base feel free.

Usage

At the root directory star the backend by using

npm start

The the backend now running at http://localhost:5000 as define in the .env file. Feel free to change it just keep in mind the frontend uses the 3000 port.

Then user another Terminal prompt to run the frontend from the root directory

cd frontend
npm start

Now the app will be up and running at http://localhost:3000

Build

In case you want a build version of the frontend just run at its directory.

npm start build

Then starting the only the server app will be get the app running at http://localhost:5000

Deployed version

There is a deployed version available at Instafight

Author

Juan Sebastián Barrgán Jerónimo

License

License: MIT

This repository has the standard MIT license. You find it here.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published