Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.8%) to scientific vocabulary
Last synced: 6 months ago · JSON representation ·

Repository

Basic Info
  • Host: GitHub
  • Owner: SkyDragon00
  • License: mit
  • Language: Python
  • Default Branch: main
  • Size: 104 KB
Statistics
  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created 8 months ago · Last pushed 8 months ago
Metadata Files
Readme Contributing License Code of conduct Citation Security

docs/README.md

Proyecto Integrador

For a AI generated documentation, please visit Ask DeepWiki

Description

This project is a FastAPI-based application that provides user authentication and management functionalities.

Requirements

  • Python 3.11

Installation

  1. Clone the repository:

    sh git clone https://github.com/gfranciscoerazom/proyecto-capstone-backend.git cd proyecto-capstone-backend

  2. Create and activate a virtual environment:

    sh python3.11 -m venv .venv source .venv/bin/activate # On Windows use `.venv\Scripts\activate`

  3. Install the dependencies:

    sh pip install -r requirements.txt

  4. Add the .env file:

    Create a .env file in the root directory with the following content:

    ```properties

    Type of environment: production, development, testing

    ENVIRONMENT=production

    to get a secret key run:

    openssl rand -hex 32

    SECRETKEY="yoursecretkey" ALGORITHM="HS256" ACCESSTOKENEXPIREMINUTES=30

    URL to connect to the database

    DATABASE_URL="sqlite:///data/database.db"

    Email configuration

    Email that will send the emails

    EMAIL_SENDER="user@example.com"

    App password of the email

    EMAILAPPPASSWORD="xxxx xxxx xxxx xxxx"

    Write token of logfire

    LOGSTOKEN="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

    Face recognition configuration

    "VGG-Face", "Facenet", "Facenet512", "OpenFace", "DeepFace", "DeepID", "ArcFace", "Dlib", "SFace", "GhostFaceNet", "Buffalo_L",

    FACERECOGNITIONAI_MODEL=Facenet

    FACERECOGNITIONAI_THRESHOLD=0.5

    ```

Running the Application

  1. Start the FastAPI server:

    sh fastapi dev # In production use fastapi run

  2. Access the application: Open your browser and navigate to http://127.0.0.1:8000/docs.

Running the Application with Docker

  1. Create this file structure:

    sh 📁 . ├── 📁 data │ ├── 📁 events_imgs │ └── 📁 people_imgs └── 🐳 docker-compose.yml

  2. Create the .env file in the root (see the point 4 of the installation section).

  3. Add this YAML code to the docker-compose.yml file:

    ```yaml version: "3.8"

    services: backend: image: gfranciscoerazom/capstone-backend containername: capstone-backend-container ports: - "8000:8000" volumes: - ./data/eventsimgs:/code/data/eventsimgs - ./data/peopleimgs:/code/data/peopleimgs envfile: - .env

    frontend:
        image: gfranciscoerazom/capstone-frontend
        container_name: capstone-frontend-container
        ports:
            - "8080:8080"
    

    ```

  4. Run the following command to start the application:

    sh docker-compose up -d

  5. Access the application: Open your browser and navigate to http://127.0.0.1:8080/home.

Running Tests

  1. Run the tests using pytest:

    sh pytest -n logical

License

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

Documentation

The project documentation is available in the wiki tab of the repository.

Owner

  • Name: Doménica Escobar
  • Login: SkyDragon00
  • Kind: user

Software engineering student.

Citation (CITATION.cff)

# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: 1.2.0
title: Proyecto CAPSTONE
message: >-
  If you use this software, please cite it using the
  metadata from this file.
type: software
authors:
  - given-names: Gabriel Francisco
    family-names: Erazo Merino
    email: gabriel.erazo.merino@udla.edu.ec
    affiliation: Universidad de las Américas (UDLA)
    orcid: 'https://orcid.org/0000-0002-7271-4526'
  - given-names: Domenica Cristina
    family-names: Escobar Moyano
    email: domenica.escobar.moyano@udla.edu.ec
    affiliation: Universidad de las Américas (UDLA)
    orcid: 'https://orcid.org/0000-0002-0019-6504'
  - given-names: Edwin Leonardo
    family-names: García Aucatoma
    email: edwin.garcia.aucatoma@udla.edu.ec
    affiliation: Universidad de las Américas (UDLA)
    orcid: 'https://orcid.org/0000-0003-4572-489X'
  - name: Universidad de las Américas
    address: >-
      Redondel del Ciclista, Antigua Vía a Nayón, Quito EC
      170124
    city: Quito
    country: EC
    post-code: '170503'
    alias: UDLA
    email: admision@udla.edu.ec
    tel: +593 2 3981000
    website: 'https://www.udla.edu.ec'
repository-code: >-
  https://github.com/gfranciscoerazom/proyecto-capstone-backend
abstract: >-
  This is the backend for the “Proyecto CAPSTONE” project.
  It provides the API for the project's frontend.
keywords:
  - FastAPI
  - Python
  - SQLModel
  - UDLA
  - CAPSTONE
  - deepface
  - AI
license: MIT

GitHub Events

Total
  • Push event: 19
Last Year
  • Push event: 19

Dependencies

.github/workflows/ci.yml actions
  • SonarSource/sonarqube-scan-action v5.0.0 composite
  • actions/cache v4 composite
  • actions/checkout v4 composite
  • actions/download-artifact v4 composite
  • actions/setup-python v4 composite
  • actions/upload-artifact v4 composite
  • aquasecurity/trivy-action master composite
  • docker/build-push-action v4 composite
  • docker/login-action v2 composite
  • docker/setup-buildx-action v3 composite
requirements.txt pypi
  • Faker *
  • PyJWT *
  • apscheduler *
  • bcrypt *
  • cryptography *
  • deepface *
  • fastapi *
  • ipykernel *
  • isort *
  • logfire *
  • prometheus-fastapi-instrumentator *
  • pymysql *
  • pytest *
  • pytest-cov *
  • pytest-xdist *
  • sqlmodel *
  • tf-keras *