mernkit

1.0.7 • Public • Published

mernkit

mernkit is a starter kit for building MERN (MongoDB, Express.js, React, Node.js) full-stack applications. It provides a basic project structure with pre-configured frontend and backend templates.

Getting Started

Prerequisites

Before you begin, make sure you have the following installed:

Installation

To create a new MERN project, run the following command:

npx mernkit my-mern-project

Project structure

my-mern-project
|-- backend
| |-- controllers
| |-- config
| |-- models
| |-- routes
| |-- .env
| |-- .gitignore
| |-- index.js
| |-- package.json

|-- frontend
| |-- public
| |-- src
| | | --assets
| | | |-- images
| | | |-- svg
| | | --components
| | | --Pages
| | | --App.jsx
| |-- .gitignore
| |-- package.json

Usage

cd my-mern-project
cd backend
npm install
node index.js

Backend starts on whichever port you define in .env folder

cd frontend
npm install
npm run dev

Front-end starts on localhost:5173 (vitejs defined port)

Package Sidebar

Install

npm i mernkit

Weekly Downloads

6

Version

1.0.7

License

ISC

Unpacked Size

14.9 kB

Total Files

22

Last publish

Collaborators

  • mank42