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.
Project description
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.js
file. - Project Structure: Organizes the project into
frontend/
andbackend/
directories. - Top-Level Files: Includes a
README.md
and.gitignore
for 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.
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.md
and.gitignore
file.
-
Start the Frontend
Navigate to the
frontend
directory and start the React app:cd frontend npm start
Open
http://localhost:3000
to view your React app. -
Start the Backend
Navigate to the
backend
directory and start the Express server:cd backend npm run dev
Open
http://localhost:5000
to 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! 🚀
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file MERNcraft-1.0.4.tar.gz
.
File metadata
- Download URL: MERNcraft-1.0.4.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dce89e06c99191bbcd852dd5b5519372b6eb2b49255e1c404f5c59a11e3af691 |
|
MD5 | 2f4682916c38a5b8735b7e4eddcf9f68 |
|
BLAKE2b-256 | fea8251f16846077f2270b32385ad5ef6dfc068e0c0a7105bace7911ada471ec |
File details
Details for the file MERNcraft-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: MERNcraft-1.0.4-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bf7b2d90996c955c90616032af7b8925968bebc7bdf25e1b8f55d7e87b6f696 |
|
MD5 | 771ee0f395d7482e6bc6e477d7127fa3 |
|
BLAKE2b-256 | ce706341d36a1f122875573f5c31d9b428471e708a158c74fc74fd138c001558 |