MERNcraft
MERNcraft is an automation script designed to kickstart your MERN stack application development. It helps you set up a basic project structure with React for the frontend and Express for the backend.
MERNcraft on GitHub
View the MERNcraft project on GitHub here.
Features
- Frontend Setup: Creates a React application using
create-react-app. - Backend Setup: Sets up a basic Express server with a sample
server.jsfile. - Project Structure: Organizes the project into
frontend/andbackend/directories. - Top-Level Files: Includes a
README.mdand.gitignorefor project documentation and Git management.
Use Cases
- Quickly start a new MERN project with a clean structure.
- Prototype MERN stack applications.
- Automate the setup of MERN projects for testing or learning purposes.
Bonus: How to Deploy a MERN Stack Application on Vercel (Frontend - React) and Render (Backend - Express)
This repository contains the step-by-step guide to deploy a MERN stack application on Vercel and Render. It includes the following:
- Deploying the React frontend on Vercel.
- Deploying the Express backend on Render.
- Connecting the frontend and backend for a complete MERN stack application.
- Setting up environment variables for the frontend and backend.
Getting Started
-
Run the Automation Script
Install the MERNcraft package from PyPI using pip:
pip install MERNcraft
OR
Clone this repository or download the script and run it to create your project structure:
git clone https://github.com/Hardvan/MERNcraft cd MERNcraft python MERNcraft.py
The script will:
- Create the project directories and files.
- Set up the React frontend.
- Set up the Express backend.
- Generate a
README.mdand.gitignorefile.
-
Start the Frontend
Navigate to the
frontenddirectory and start the React app:cd frontend npm start
Open
http://localhost:3000to view your React app. -
Start the Backend
Navigate to the
backenddirectory and start the Express server:cd backend npm run dev
Open
http://localhost:5000to view your Express server.
Project Files
- MERNcraft.py: The main automation script that sets up your MERN project.
- frontend/: Contains the React application created with
create-react-app. - backend/: Contains the Express server setup.
- server.js: The entry point for the Express server.
- models/: Directory for database models.
- routes/: Directory for API routes.
- controllers/: Directory for handling business logic.
- README.md: Project documentation (this file).
- .gitignore: Contains files and directories to be ignored by Git.
Notes
- Ensure you have Node.js and Python installed to run the automation script and manage dependencies.
- Customize your React and Express applications as needed.
Happy coding! 🚀
Metadata
Release files for MERNcraft 1.0.20
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| MERNcraft-1.0.20.tar.gz | 8.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| MERNcraft-1.0.20-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.9 kB
Release files / MERNcraft-1.0.20.tar.gz
| Download URL | MERNcraft-1.0.20.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
11a2c325980c1de4f79cd76ed922ca1463ed95649d8a4c8313ce2c5e60ddbc80
|
|
BLAKE2b-256 checksum How to use checksums |
61b567284d9e8383a3e9f44e156f3d5c970fcd6ab8c2e5616cc3e1307be80e8c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.4
|
Release files / MERNcraft-1.0.20-py3-none-any.whl
| Download URL | MERNcraft-1.0.20-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a9e5dbad90adf2e15ff87c44d0ded5e6b43b9df0902493c23e5219d0700b5234
|
|
BLAKE2b-256 checksum How to use checksums |
c32af89bfee72f7662ee477c55705116f38dd157374b8ce6fbf42214753dbb63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.4
|