Follow these instructions to set up and run the project locally.
- Node.js (v16 or above)
- PostgreSQL (running locally or using a cloud service like neon.tech)
- Docker
-
Clone the repository:
git clone https://github.com/MeerUzairWasHere/EZpay cd EZpay
-
Install dependencies:
npm install
-
Set up PostgreSQL:
You can either set up PostgreSQL locally or use a cloud provider.
Using Docker to run PostgreSQL locally:
docker run -e POSTGRES_PASSWORD=mysecretpassword -d -p 5432:5432 postgres
-
Environment Variables:
Copy
.env.example
files to.env
and update them with your configuration.cp .env.example .env
Make sure to update the database URLs in all
.env
files according to your PostgreSQL setup. -
Database Migration and Seeding:
Navigate to the
packages/db
directory:cd packages/db
Run the following commands to apply migrations and seed the database:
npx prisma migrate dev npx prisma db seed
-
Run the Application:
Navigate to the
apps/user-app
directory and run the app:cd apps/user-app npm run dev
-
Login to the Application:
Use the following credentials to log in:
- Phone:
1111111111
- Password:
alice
- Phone:
Feel free to open issues or pull requests if you find any bugs or have suggestions for improvements.
This project is licensed under the MIT License. See the LICENSE file for details.