GithubHelp home page GithubHelp logo

sakydev / express-mvc-boilerplate Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 89 KB

ExpressJS MVC Boilerplate in Laravel style

JavaScript 100.00%
boilerplate boilerplate-template expressjs javascript laravel prisma

express-mvc-boilerplate's Introduction

ExpressJS MVC Boilerplate

Welcome to the ExpressJS MVC boilerplate with Prisma! This project provides a solid foundation for building modern web applications using ExpressJS, following the MVC (Model-View-Controller) pattern and integrating with Prisma for database management. Inspired by the organizational structure of Laravel, this boilerplate aims to streamline development by providing a clear and scalable architecture.

Features

  • MVC Architecture: Organize your code into models, views, and controllers for improved maintainability and separation of concerns.
  • Prisma Integration: Utilize Prisma as the ORM (Object-Relational Mapping) tool for seamless database interactions, ensuring efficient CRUD operations.
  • Service Layer: Implement a service layer to encapsulate business logic and interact with repositories, promoting modularity and code reuse.
  • Posts CRUD Operations: Out-of-the-box support for creating, reading, updating, and deleting posts, serving as a practical example for extending functionality.
  • ExpressJS: Leverage the flexibility and performance of ExpressJS, a fast and minimalist web framework for Node.js, to handle HTTP requests and build robust APIs.

Getting started

  1. Clone: Begin by cloning this repository to your local machine.
    git clone https://github.com/sakydev/express-mvc-boilerplate.git

  2. Install Dependencies: Navigate into the project directory and install the necessary dependencies using npm or yarn.

cd express-prisma-boilerplate
npm install
  1. Migration: Run database migrations to initialize your database schema.
    npx prisma migrate dev

  2. Start: Launch the ExpressJS server and start developing your application!
    npm start

express-mvc-boilerplate's People

Contributors

sakydev avatar

Stargazers

Febry Dharmawan Junior avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.