Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/harrykamboj1/lorcan-bet-async
https://github.com/harrykamboj1/lorcan-bet-async
Last synced: about 5 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/harrykamboj1/lorcan-bet-async
- Owner: harrykamboj1
- Created: 2024-09-14T10:35:55.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-09-14T10:45:39.000Z (2 months ago)
- Last Synced: 2024-09-14T21:07:50.839Z (2 months ago)
- Language: TypeScript
- Size: 45.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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