This repository contains the Chamsmobile project, a simple banking application. The application consists of both frontend and backend components, enabling users to perform various banking operations.
The application should provide the following features:
- Create a new user account.
- Enable existing users to log in.
- Facilitate money transfers between users with valid account numbers.
- Display transaction history.
- Show account balances.
Before you begin, ensure you have the following prerequisites installed:
- Node.js: Download and install Node.js from https://nodejs.org/.
- PostgreSQL: Install PostgreSQL and create a database for Chamsmobile.
- Docker: Install Docker for containerization.
Follow these steps to set up and run the Chamsmobile project on your local machine.
In the project root directory, run the following command to install the required dependencies:
npm install
Create a .env
file in the project root directory and use the content of .env.example
as a template. Replace the placeholders with your own values:
CHAMSMOBILE_API="https://**.app/api"
CHAMSMOBILE_ORG_KEY="e9e9e9297f023d4a915"
JWT_SECRET="242424"
DATABASE_URL="postgresql://postgres@dlocal:5432/postgres"
Run the Prisma migrations to set up the database schema:
npx prisma generate
npx prisma migrate deploy
Seed the database with initial data (if needed):
npx prisma db seed
Start the Chamsmobile development server by running the following command:
npm run dev
Your Next.js application should now be up and running at http://localhost:3000.