mernkit
v1.0.7
Published
A MERN Kit with latest libraries integrated for your convinience.
Downloads
7
Maintainers
Readme
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)