Git Product home page Git Product logo

flash-sale's Introduction

Flash Sale

Overview

This project implements a very simple but effective flash sale system, allowing users to purchase products at discounted prices for a limited time. The system is designed to be set up using Docker for easy deployment and management.

Setup

Prerequisites

  • Docker Installed: Ensure that Docker is installed on your system. Docker allows you to package and distribute applications and their dependencies as containers.

Setup Environment Variables

To configure the necessary environment variables for the project, follow these steps:

  1. Rename the example environment file provided (example.env) to .env. This file will contain the environment variables required for the project.

    mv example.env .env

    This command renames example.env to .env, ensuring that the environment variables are properly configured for your local environment.

Initializing PostgreSQL Instance

  1. Use the provided Docker Compose file to set up a PostgreSQL database instance.
  2. Run the following command in your terminal:
docker compose up -d

This command will start the PostgreSQL container in detached mode (-d), allowing it to run in the background.

Running the Project

  1. After initializing the PostgreSQL instance, proceed to run the project.
  2. Utilize the provided Makefile to simplify the process.
  3. Run the following command in your terminal:
make run

This command will execute the necessary steps to run the flash sale project.

flash-sale's People

Contributors

laststylebender14 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.