Skip to content

evokateur/nodejs-complete-guide

Repository files navigation

Little Shop of Products

Coding along with NodeJS - The Complete Guide

This is the Products Shop app developed in Sections 3 through 23 13 (currently), with the added twist of TypeScript

Capture d’écran 2025-06-09 à 15 35 37

Getting Started

Clone and set up the project

git clone git@github.com:evokateur/nodejs-complete-guide.git
cd nodejs-the-complete-guide
npm install

Configure MongoDB

Set up a free database with MongoDB Atlas or run a local instance.

Copy .env.example to .env and set MONGODB_URI

Start the Application

npm run dev

Can be also be run as JavaScript:

npm run dev:js

The application should be available at http://localhost:3000/

Project Structure

  • Both JavaScript and TypeScript versions are fully functional
  • JavaScript version preserved for reference and educational purposes
.
├── dist/                     # Compiled TypeScript output
└── src
    ├── js
    │   ├── app.js            # JavaScript entry point
    │   ├── controllers
    │   │   ├── admin.js
    │   │   ├── error.js
    │   │   └── shop.js
    │   ├── models
    │   │   ├── order.js
    │   │   ├── product.js
    │   │   └── user.js
    │   └── routes
    │       ├── admin.js
    │       └── shop.js
    └── ts
        ├── app.ts            # TypeScript entry point
        ├── controllers
        │   ├── admin.ts
        │   ├── error.ts
        │   └── shop.ts
        ├── models
        │   ├── order.ts
        │   ├── product.ts
        │   └── user.ts
        └── routes
            ├── admin.ts
            └── shop.ts

Scripts

TypeScript

npm run dev                   # Run TypeScript version with hot reload
npm run build                 # Compile TypeScript to JavaScript
npm run start                 # Run compiled JavaScript version, or just..
npm start
npm run build:watch           # Compile TypeScript in watch mode

JavaScript

npm run dev:js                # Run JavaScript version
npm run start:js              # Run JavaScript version (no nodemon)

About

Coding along with NodeJS - The Complete Guide

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published