Skip to content

pennane/jobel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jobel

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!

Development preparation steps:

  1. Have node 18 installed
  • you might want to use nvm
  1. Check that you are using node 18
node -v
# should say v18.6.0
  1. Install typescript globally
  • the backend uses typescript
npm install typescript -g
  1. Install Docker
  1. Run npm install in the monorepo root
  2. 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
  1. Create .env file under ´packages/app´ and packages/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

Frontend

Developing

npm run dev -w app

Adding new dependencies

npm install <package_name> -w app

Backend

Developing

  • Make sure mongo is running. can be done with ./scripts/start-mongo.sh in the monorepo root.
npm run dev -w server

Adding new dependencies

npm install <package_name> -w server