-
Notifications
You must be signed in to change notification settings - Fork 26
Setup
Muragesh-24 edited this page Mar 23, 2026
·
2 revisions
- Node.js
- npm (Node Package Manager)
- Git
- Docker
-
Fork the repository : Fork dev branch
-
Clone the repository :
git clone https://github.com/pclubiitk/compass.git cd compass -
Create a new branch from the dev branch
-
Create these keys :
- Gmail app password
- Site key and secret key for recaptcha
- open ai moderation key.
-
Important environemnt setups (Use the respective templates provided in the respective folders) :
- Create a .env file in root folder
- create a .emv file in search folder
- create a secret.yml file in server folder
- Some Dev bypass changes :
| File | Bypass |
|---|---|
| server/middleware/underdev.go | make MapsUnderdev = false |
| Constant.ts | comment production backend url and uncomment development backend url |
| server/config.yml | change domain and frontend url also make env as dev |
| server/middleware/authenticator.go | make cookies secure false in dev environment |
| server/auth/handler.profile.go | comment the verify from oa checkpoint in uodate profile handler |
- Final commands to start everything :
## starting the map frontend npm install npm run dev ## starting the search frontend cd search npm install npm run build:worker npm run dev ## starting the backend cd .. cd server docker compose up --build
You can also run the full fronted using the docker compose file in the root folder. Just run the below command in the root folder and it will start both the frontend and backend together.