Skip to content

BRAIT-Braille-Translator/back-end-service-brait

Repository files navigation

back-end-service-brait

Getting Started

Project Struture

  • prisma/: Prisma configuration and database schema files.
  • src/: Application source code.
    • services/: Service modules for specific business logic.
    • controllers/: Controllers handling the application logic.
    • routes/: Express.js route definitions.
    • middlewares/: Custom middleware functions.
    • config/: Configuration files.
    • utils/: Utility modules and helper functions.
    • repository/: Modules for interacting with databases or external data sources.
  • tests/: Test files.
  • .env: Environment variables.
  • package.json: Project configuration and dependencies.
  • app.js: Main server file.

Installation

  1. clone the repo
    git clone https://github.com/BRAIT-Braille-Translator/back-end-service-brait.git
  2. install npm package
    npm install
  3. change example env to .env file
     cp .env.example .env 
  4. run docker compose
     docker-compose up -d
  5. update .env DATABASE_URL depends on your database url
    DATABASE_URL="mysql://USER:PASSWORD@HOST:PORT/DATABASE"
  6. run prisma migrate to migrate schema
    npx prisma migrate dev --name init
  7. run npm run start to run the service
    npm run start

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published