Follow these steps to run the project locally:
git clone <repository-url>
cd <repository-directory>
npm install
- Create a
.env
file in the project root directory. - Add the following environment variables:
DATABASE_NAME=cluster-activity-app-type-orm DATABASE_USER=postgres DATABASE_PASSWORD=QWERTY2000 DATABASE_HOST=localhost JWT_SECRET=JWT_SECRET GOOGLE_CLIENT_ID= GOOGLE_CLIENT_SECRET= BASE_URL=http://localhost:5000/ BASE_IP_URL=http://127.0.0.1:5000/ CLIENT_URL=http://localhost:5173/ EMAIL_USER=activityappclustertest@gmail.com EMAIL_PASS=
- Make sure Docker is installed and running on your system.
- Build and run the Docker containers:
docker-compose up --build --force-recreate
- To populate the database with initial data, run:
npm run seed
- Once the Docker containers are running, access the backend at:
http://localhost:5000/users/all
- To stop the Docker containers, run:
docker-compose down
- Ensure that port
5000
is not in use by another application. - Modify environment variables in the
.env
file if necessary.
That's it! Your project should now be running locally for testing.