This project requires the following versions:
- Node.js: v22.7.0
- Docker: 27.1.2
- Postgres: 16.3
- Node Package Manager: 10.8.2
To ensure compatibility, please use these specific versions.
Prior to setting up the enviornment, if you are not familiar with Node.js and NPM go through this awsome blog post.
- Install Node Version Manager (nvm):
If you don't already have
nvminstalled, you can install it by following the instructions here. - Navigate to the server directory
cd server/ - Switch to the required Node.js version:
Once
nvmis installed, navigate to the project directory and run:nvm use
- Install the environment incase if it's not already available (optional)
If step 2 prompts you to install the environment then run:
nvm install
- Install the correct npm:
Install node package manager with this specific version:
npm install npm@10.8.2
-
Install dependencies by running
npm install
To host the database locally we are going to use docker, please make sure that you have docker desktop installed in your PC.
- Once you do, if you have cloned the repo for the first time then type this command in the root directory of the project
docker compose up --build
- If you are trying to run the database for development run
docker compose up