Need2Give aims to bridge the gap between donation centers and users. Our goal is to provide a platform for users to connect with donation centers and donation centers to promote their items.
- Have NodeJS and npm installed
- Have PostgreSQL installed and running
Follow these steps to setup and run the project locally:
- Clone the repository
git clone https://github.com/Hacktivists-AUB/Need2Give-frontend
- Install dependencies
npm install
- Create a PostgreSQL database To do that, simply run the following sql query:
CREATE DATABASE <database_name>;
- Configure environment variables
Create a .env
file in the project root directory with the same content as the .env.sample, and configure its fields according to your setup.
- Run migrations
npm run migrate:latest
For more information on other migration options, run the following command
npm run migrate
- Seed the database (optional)
npm run seed
The following command should be simple enough in development:
npm start
The following commands should be better in production for efficiency purposes:
npx tsc --outDir build
node build/index.js
This project is licensed under the GNU General Public License v3.0.