A web based application for playing Fantasy Football League made in MERN stack.
-
Install NodeJS and MongoDB Compass:
-
Clone the repository
cd <INSTALLATION_PATH>
git clone https://github.com/UjjawalKhadanga/FantasyFootball.git
cd ./FantasyFootball
- Install the Node Modules for the server
cd ./server
npm install
- Install the Node Modules for the client
cd ../client
npm install
- Setup Environment Variables in server environment
cd ../server
mkdir var
cd ./var
touch .env
- Add the following fields in the .env file
- MONGODB_URI = "mongodb://localhost:27017/FantasyFootball"
- JWT_SECRET = ""
- SALT_ROUND = 12
- Open 2 terminals:
- In the client folder :
cd ./client
npm start
- In the server folder :
cd ./server
npm start