- Clone the repo
git clone https://github.com/lijiaxingogo/ideal-parakeet.git
- Set enviornment variable for frontend and backend
cd frontend
touch .env
Please add
REACT_APP_SERVER = 'http://localhost:4000/pokemon'
in .env file.
cd server
touch .env
Please add
PORT=4000
FRONTEND="http://localhost:3000"
SERVER="http://localhost:4000"
in .env file.
- NPM Install:
Start frontend(please make sure port 3000 is available):
cd frontend
npm i
npm run start
Go to http://localhost:3000/ on your browser.
Start backend:
cd backend
npm i
npm run dev
- Run test:
cd backend
npm run test
Free feel to contact me at jiaxin.li.gogo@gmail.com for any issues. Thank you!