Skip to content

yasaenghwa/PLKIT-BE.platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

79 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

PLKIT-BE.platform

Table of Contents

Overview

PLKIT-BE.platform is a backend service built with FastAPI, designed to manage operations for a community and market platform. It includes user authentication, community and market functionalities, and status management. Its modular architecture ensures maintainability and scalability.

Project Structure

PLKIT-BE.platform-develop/
β”œβ”€β”€ crud/                  # CRUD operations for models
β”‚   β”œβ”€β”€ community.py
β”‚   β”œβ”€β”€ market.py
β”‚   β”œβ”€β”€ user.py
β”‚   └── __init__.py
β”œβ”€β”€ models/                # Database models
β”‚   β”œβ”€β”€ community.py
β”‚   β”œβ”€β”€ market.py
β”‚   β”œβ”€β”€ user.py
β”‚   └── __init__.py
β”œβ”€β”€ routers/               # API route handlers
β”‚   β”œβ”€β”€ auth.py
β”‚   β”œβ”€β”€ communities.py
β”‚   β”œβ”€β”€ dummies.py
β”‚   β”œβ”€β”€ markets.py
β”‚   β”œβ”€β”€ statuses.py
β”‚   β”œβ”€β”€ users.py
β”‚   └── __init__.py
β”œβ”€β”€ schemas/               # Pydantic models for validation
β”‚   β”œβ”€β”€ auth.py
β”‚   β”œβ”€β”€ community.py
β”‚   β”œβ”€β”€ market.py
β”‚   β”œβ”€β”€ user.py
β”‚   └── __init__.py
β”œβ”€β”€ config.py              # Configuration settings
β”œβ”€β”€ database.py            # Database connection and setup
β”œβ”€β”€ main.py                # FastAPI entry point
β”œβ”€β”€ security.py            # Security functions (e.g., JWT handling)
β”œβ”€β”€ requirements.txt       # Python dependencies
└── .gitignore             # Git ignored files

Features

  • User Authentication: JWT-based authentication system.
  • Community and Market APIs: Manage community and market functionalities.
  • Status Management: Handle and update user and service statuses.
  • CORS Support: Enables cross-origin requests.

Getting Started

Prerequisites

  • Python 3.8+
  • Virtual environment tool (venv, virtualenv, conda)

Installation

  1. Clone the repository: bash git clone <repository-url> cd PLKIT-BE.platform-develop

  2. Create and activate a virtual environment: bash python -m venv env source env/bin/activate # On Linux/Mac env\Scripts\activate # On Windows

  3. Install dependencies: bash pip install -r requirements.txt

Running the Server

  1. Set up environment variables: - Create a .env file for sensitive information like database credentials.

  2. Start the server: bash uvicorn main:app --reload

  3. Access API documentation: - Visit http://localhost:8000/docs for interactive API docs.

Dependencies

Listed in requirements.txt:

  • FastAPI
  • Uvicorn
  • SQLAlchemy
  • Cryptography
  • PyJWT
  • ...and others.

Configuration

  • Database: Configured in database.py.
  • Security: JWT tokens handled in security.py.

Contributing

  1. Fork the project.
  2. Create your feature branch: bash git checkout -b feature/AmazingFeature
  3. Commit your changes: bash git commit -m 'Add some AmazingFeature'
  4. Push to the branch: bash git push origin feature/AmazingFeature
  5. Open a pull request.

About

🌱 PLKIT's [BE] Platform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages