Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Понял, давайте попробуем еще раз, чтобы структура не ломалась.

# RediShop

RediShop is a web application for managing an online store, developed using FastAPI for the backend and Jinja2 for template rendering.


## Installation and Setup

### Step 1: Clone the Repository

```bash
git clone https://github.com/yourusername/RediShop.git
cd RediShop

Step 2: Create and Activate a Virtual Environment

For Windows

python -m venv venv
venv\Scripts\activate

For Unix/MacOS

python3 -m venv venv
source venv/bin/activate

Step 3: Install Dependencies

pip install -r requirements.txt

Step 4: Initialize the Database

Run the following command to initialize the database:

uvicorn backend.app.main:app --reload

Step 5: Start the Application

uvicorn backend.app.main:app --reload

The application will be available at http://127.0.0.1:8000.

Main Routes

  • / - Home Page
  • /register - User Registration
  • /login - User Login
  • /profile - User Profile

File Structure

backend/app/main.py

The main application file containing settings and route inclusion.

backend/app/api/

Contains modules for handling various routes such as authentication, products, users, and cart.

backend/app/database/

Contains database configurations, models, and CRUD operations.

backend/app/routers/main_routes.py

Contains the main routes of the application, such as registration, login, profile, and the root page.

backend/app/services/

Contains the business logic of the application, such as product operations.

backend/app/utils/

Contains utility modules, such as authentication.

backend/app/schemas/

Contains data schemas for validation and serialization.

frontend/static/

Contains static files such as CSS, JavaScript, and images.

frontend/templates/

Contains HTML templates for rendering pages.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages