📚

MERN Stack Bookstore App Guide

Aug 22, 2024

MERN Stack Bookstore Application Tutorial

Introduction

  • MERN Stack: Combines MongoDB, Express.js, React.js, and Node.js.
  • Goal: Build a basic bookstore project.
  • Instructor: Mohammed Taheri, a full-stack developer.

Prerequisites

  • Knowledge Required: Basic JavaScript and React.
  • Tools Needed:
    • Node.js installed on your computer.
    • Code editor (e.g., VS Code).
    • Browser (e.g., Chrome).

Project Setup

  1. Create Project Folder: bookstore-mernstack.
  2. Folder Structure:
    • Create two subfolders: backend and frontend.
    • Create .gitignore and README.md files.

Initialize Backend

  1. Open terminal in the backend folder.
  2. Run the following commands:
    • npm init -y (Initialize package.json)
    • Install dependencies:
      • npm install express nodemon
  3. Configure package.json: Add `