This is a group project made for web development course 1 in Metropolia UAS. Jobel is a place where you can share your thoughts anonymously!
- Have node 18 installed
- you might want to use nvm
- Check that you are using node 18
node -v
# should say v18.6.0
- Install typescript globally
- the backend uses typescript
npm install typescript -g
- Install Docker
- for windows / mac Docker Desktop is good for this
- Run npm install in the monorepo root
- Initialize mongodb with
./scripts/setup-mongo.sh
- In the future it can be started with
./scripts/start-mongo.sh
- Mongo can be killed with
./scripts/stop-mongo.sh
- Create
.env
file under ´packages/app´ andpackages/server
.env content for packages/app/.env
VITE_BACKEND_URL=127.0.0.1:3000
.env content for packages/server/.env
MONGO_DB_URI=mongodb://127.0.0.1:27017
MONGO_DB_NAME=web-project
PORT=3000
JWT_SECRET=somestringhere
npm run dev -w app
npm install <package_name> -w app
- Make sure mongo is running. can be done with
./scripts/start-mongo.sh
in the monorepo root.
npm run dev -w server
npm install <package_name> -w server