Shopbridge is a simple inventory management system that allows users to add, edit, and delete items. This repository contains the instructions to set up the Shopbridge app using Docker.
- Docker installed on your machine
- Clone this repository
git clone https://github.com/your-username/shopbridge.git
-
Open your terminal and navigate to the root directory of the project.
-
Create a Docker container for the PostgreSQL database:
docker run --name db -e POSTGRES_DB=shopbridge_dev -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres -v shopbridge-db-data:/var/lib/postgresql/data -p 5432:5432 -d postgres
- Build the Flask app Docker image:
docker build -t flask-app .
- Run the Flask app Docker container:
docker run -d --rm --name flask-web -p 8000:8000 --link db:db -w /app/backend flask-app
- Install Node.js and npm.
- Navigate to the frontend directory:
cd frontend
- Install the dependencies:
npm install
- Start the React app:
npm start
- Open your browser and navigate to http://localhost:3000 to view the Shopbridge app frontend.
Here is Swagger Docs for the flask API
Inside backend and frontend folder you will find specific instruction and docs, on the backend folder you can find the API docs. License This project is licensed under the MIT License