- Make Sure you have node and npm installed in your computer.
- Install yarn with your npm.
- Clone the repo in your pc or download it from the repository.
- Open it with VS code.
- Make sure that port 3000 and 4000 are available and not occupied in your browser with anything.
- After entering the project folder open gitbash or PowerShell and write "yarn", this will save all the necessary dependencies in your project for frontend.
- Then write "yarn start" in the terminal this will open your frontend in the browser on port 3000.
- Open another terminal and type "cd server" , moving to the server folder as our backend is there.
- Then again write "yarn" in the terminal, this will save necessary dependencies for backend in your project.
- Then write "yarn start" in that terminal or you can also write "nodemon server.js". This will initiate your backend on port 4000.
- what if while running the frontend your app throws the following error?
Error: error:0308010C:digital envelope routines::unsupported
-> just go to package.json in the script you will find:
"scripts": { "start": "react-scripts start", "build": "react-scripts build", ... just change the second line like below and save and run again
"scripts": { "start": "react-scripts --openssl-legacy-provider start", "build": "react-scripts build", - What if any dependency library becomes outdated?
-> just run the command "yarn add (dependency-name)@(specific version)" without brackets.