This is a simple queue management system implemented in Node.js with TypeScript, Express, and PostgreSQL.
Before running the application, make sure you have Node.js and Yarn installed on your machine.
-
Clone this repository:
git clone https://github.com/LexxXell/simple-queue.git
-
Navigate to the project folder:
cd simple-queue -
Install dependencies:
yarn
-
Create a
.envfile based on the provided.env.exampleand update it with your PostgreSQL database configuration. -
Run the migration to set up the database:
yarn migrate
To start the application, run:
yarn startThe application will be accessible at http://localhost:3000.
For development, you can use the following command, which compiles TypeScript and starts the application:
yarn devTo run the application using Docker Compose, you can use the provided scripts:
-
Start containers:
yarn docker-compose-up
-
Start containers in the background:
yarn docker-compose-up-d
-
Stop containers:
yarn docker-compose-down
-
Stop containers and remove volumes:
yarn docker-compose-down-v
Make sure to adjust the PostgreSQL configuration in the .env file before running Docker Compose.
This project is licensed under the MIT License - see the LICENSE file for details.