Before running the application, ensure you have the following installed:
with bun
makesure bun install --save-text-lockfile
To run the application using Docker Compose, follow these steps:
-
Clone the repository:
git clone <repository-url> cd Expenso
-
Build and start the services:
docker-compose up --build
This command will build the Docker images for the client and server, and start all services defined in the
docker-compose.ymlfile. -
Access the application:
- The client will be available at
http://localhost:3000 - The server will be available at
http://localhost:4000
- The client will be available at
The following environment variables are used in the application:
NODE_ENV: Set toproduction.DATABASE_URL: Connection string for PostgreSQL.JWT_SECRET: Secret key for JWT authentication (replaceyour_jwt_secret_herewith your actual secret).
POSTGRES_USER: Database user (default:postgres).POSTGRES_PASSWORD: Database password (default:postgres).POSTGRES_DB: Database name (default:expenso).
To stop the application, press CTRL+C in the terminal where the Docker Compose command is running. You can also run:
docker-compose downThis command will stop and remove all containers defined in the docker-compose.yml file.