Welcome to the Givers & Takers platform, a community-driven space dedicated to transparent giving and tangible impact. Our platform connects donors and recipients for practical assistance, ensuring that every contribution makes a real difference.
Image inspiration from: UNICEF, Mirror Foundation, and GoFundMe.
To run the platform locally, you will need Docker installed on your machine.
The platform uses PostgreSQL as the database. Follow the steps below to start the database server.
-
Navigate to the
db
directory:cd db
-
Use Docker Compose to start the database:
docker compose up -d
The database server will be accessible at
http://localhost:5432
.
-
Navigate to the
students
directory where the Rails application is located:cd backend
-
For the first-time setup, build the app image:
docker compose build
-
Run the app:
docker compose up -d
The app will run on
http://localhost:3000
.
-
Navigate to the
frontend
directory:cd frontend
-
For the first-time setup, npm install:
npm install
-
Run the app:
ng serve
-
Navigate to the
api
directory:cd api
-
For the first-time setup, npm install:
npm install
-
Run the app:
npm run dev
To execute Rails commands (e.g., generating new models, running migrations), you’ll need to access the app container.
-
Open a terminal in the container:
docker exec -it gnt-web bash
-
Exit the container when you're done:
exit
To stop all running containers, go to the directory where the Docker Compose files are located and run:
docker compose down --remove-orphans
The platform encourages transparent giving and supports users who want to "Start Giving" with ease.