Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/harrykamboj1/lorcan-bet-async


https://github.com/harrykamboj1/lorcan-bet-async

Last synced: about 5 hours ago
JSON representation

Awesome Lists containing this project

README

        

# Inventory and Order Management System

## Tools Used
- **Node.js**: JavaScript runtime for building the server.
- **Express**: Web framework for Node.js.
- **Prisma**: ORM for database interactions.
- **PostgreSQL**: Database for storing data.
- **Redis**: In-memory data structure store for managing job queues.
- **Docker**: For containerizing PostgreSQL and Redis.

## Setup Instructions

1. **Clone the Repository**:
```bash
git clone https://github.com/yourusername/inventory-order-system.git
cd inventory-order-system
```

2. **Install Dependencies**:
```bash
npm install
```

3. **Set Up Environment Variables**:
Create a `.env` file in the root directory and add the following:
```
DATABASE_URL=""
REDIS_URL=""
PORT=3000
```

4. **Run Docker Containers**:
Use Docker Compose to start PostgreSQL and Redis:
```bash
docker-compose up -d
```

5. **Run Database Migrations**:
Apply the Prisma migrations to set up the database schema:
```bash
npx prisma migrate dev --name init
```

## Running the Application

To start the application, run:
bash
npm run dev