Skip to content

RishivikramN/chisel-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chisel Backend

Chisel Backend runs using Express.js application integrated with Prisma as the ORM and the database as mysql.

Prerequisites

Before running the application, ensure you have the following installed:

  • Node.js (version 18.X.X or higher)
  • Prisma CLI (version 4.14.1 or higher)
  • docker-compose (version 1.25.5 or higher)

Getting Started

  1. Clone the repository:

    git clone https://github.com/RishivikramN/chisel-backend.git
  2. Install the dependencies:

    cd chisel-backend
    
    yarn install
  3. Set up the database:

    Create a .env file based on the .env.example file and provide your database credentials and use the below command to spin up the my-sql docker image using the docker file.

    docker-compose up -d
  4. Run the DB Migrations:

    yarn migrate
  5. Start the server

    yarn dev

Folder Structure

The project structure follows a common layout for Express.js applications:

  • src/: Contains the application source code.
    • controllers/: Handles the request handling logic.
    • repositories/: Contains the wrapper code for the Database queries
    • types/: Contains all the types of the entities.
    • routes/: Contains the route definitions.
    • server.ts: Contains the middlewares and server logic.
    • index.ts: Entry point of the application.
    • prisma/: Contains the Prisma schema file and migration files.
    • package.json: Defines project metadata and dependencies.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published