Skip to main content

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/ and backend/ 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.

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

  1. 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.
  2. 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.

  3. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

MERNcraft-1.0.19.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

MERNcraft-1.0.19-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file MERNcraft-1.0.19.tar.gz.

File metadata

  • Download URL: MERNcraft-1.0.19.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.4

File hashes

Hashes for MERNcraft-1.0.19.tar.gz
Algorithm Hash digest
SHA256 dac9c3860d50f0a492b48055a060f60457d88c10fe3b35afdc2c1c3cfea88d11
MD5 2a2402818ad1d9efa41a42a3c222299a
BLAKE2b-256 62e5b403a28fce6f9a94c52bd5c6bff27bfb0d65d4fdc4a64c3ee2bc830ec019

See more details on using hashes here.

File details

Details for the file MERNcraft-1.0.19-py3-none-any.whl.

File metadata

  • Download URL: MERNcraft-1.0.19-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.4

File hashes

Hashes for MERNcraft-1.0.19-py3-none-any.whl
Algorithm Hash digest
SHA256 5de83b5a8691f997e55cb576ff6f978929bfa39dd7c10b56b8d95c0bc80b2a90
MD5 75b6358d4e237caf7ccb6f20272d493a
BLAKE2b-256 e480a0a9c04f5f66c0ea9f9e4ab50b7fe4efb3494c666228e8beb7c1d0403e38

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page