- cd into the
webfolder - run
npm iin it - run
npm run dev - Congrats! Your fronted is running on
localhost:5173
- cd into the
apifolder - run
npm iin it - make a
.envfile in theapifolder - add these two variables in it
DB_URI="mongodb+srv://{username}:{password}@cluster0.zirsf.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0"JWT_SECRET="aeef42be12db456e6c36a6b16e99826f257fa212fe165dc34dc181f"(example)
You can get a new JWT_SECTET from here and a free DB_URI from here