Skip to content

An online bakery platform where customers can browse, customize, and order cakes and pastries, with features for store staff to manage logistics and operations.

Notifications You must be signed in to change notification settings

Anas-Ah25/Cakery

Repository files navigation

🎂 Cakery

An online bakery platform where customers can browse, customize, and order cakes and pastries, with features for store staff to manage logistics and operations.


🚀 Deployed Application Links


🗂️ Project Structure

  • app/ – Backend API files (Flask, PostgreSQL)
    • Contains .env.example for backend environment configuration.
  • frontend/ – Client server files (Next.js)
    • Contains .env.example for frontend environment configuration.

Each folder (app/ and frontend/) has its own .env.example file for environment variable setup.


🛠️ Setup and Installation

1️⃣ Clone the Repository

git clone https://github.com/Anas-Ah25/Cakery.git
cd Cakery

2️⃣ Backend Setup

  1. Navigate to the backend directory:
cd app
  1. Install dependencies:
pip install -r requirements.txt
  1. Create a .env file from the example:
cp .env.example .env
  1. Update the .env file with the following connection string for a testing DB:
DATABASE_URL=postgresql+psycopg2://Anas:testServer1@cakery.postgres.database.azure.com:5432/CakeryMainDB
  1. Start the backend server:
flask run

Backend runs at: http://127.0.0.1:5000


3️⃣ Frontend Setup

  1. Navigate to the frontend directory:
cd frontend
  1. Install dependencies:
npm install
# If you encounter dependency conflicts, use:
npm install --legacy-peer-deps
  1. Start the development server:
npm run dev

Frontend runs at: http://localhost:3000


4️⃣ Run the Application

About

An online bakery platform where customers can browse, customize, and order cakes and pastries, with features for store staff to manage logistics and operations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5