Create .env
file inside the client and server folder
VITE_API_URL=http://localhost:5000/countries
FLAGS_URL=https://countriesnow.space/api/v0.1/countries/flag/images
POPULATION_URL=https://countriesnow.space/api/v0.1/countries/population
COUNTRY_INFO_URL=https://date.nager.at/api/v3/CountryInfo/
AVAILABLE_COUNTIES_URL=https://date.nager.at/api/v3/AvailableCountries
SERVER_PORT=5000
- Install packages with
npm install
in theapp>
folder level will instal packages for server and client - After
npm run server
in theapp>
, will init server in the watch mode at thelocalhost:5000
- In the new terminal run
npm run client
in the sameapp>
level, at thelocalhost:3000