Skip to content

sks006/Full_E-Commarce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

20 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Full Stack Web Application

This project is a full-stack web application consisting of a React frontend (dashboard/) and a Node.js + Express backend (backend/). The backend serves APIs, and the frontend consumes them.


πŸ“ Folder Structure

project-root/
β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ .env               # Environment variables (not committed)
β”‚   β”œβ”€β”€ package.json       # Backend dependencies and scripts
β”‚   β”œβ”€β”€ index.js           # Entry point of Express server
β”‚   β”œβ”€β”€ config/            # DB config, JWT config, etc.
β”‚   β”œβ”€β”€ controllers/       # Route handler functions
β”‚   β”œβ”€β”€ models/            # Mongoose/Sequelize models (DB schemas)
β”‚   β”œβ”€β”€ routes/            # Express route definitions
β”‚   β”œβ”€β”€ middlewares/       # Auth middleware, error handling, etc.
β”‚   β”œβ”€β”€ utils/             # Utility/helper functions
β”‚   └── services/          # External service logic (e.g., payment, mail)
β”‚
β”œβ”€β”€ dashboard/
β”‚   β”œβ”€β”€ .env               # Frontend environment variables (not committed)
β”‚   β”œβ”€β”€ package.json       # Frontend dependencies and scripts
β”‚   β”œβ”€β”€ public/            # Static assets (index.html, icons, etc.)
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ index.js       # Entry point
β”‚   β”‚   β”œβ”€β”€ App.js         # Root component
β”‚   β”‚   β”œβ”€β”€ assets/        # Images, fonts, logos, etc.
β”‚   β”‚   β”œβ”€β”€ components/    # Reusable UI components (Button, Navbar, etc.)
β”‚   β”‚   β”œβ”€β”€ pages/         # Page components (Home, Dashboard, Login, etc.)
β”‚   β”‚   β”œβ”€β”€ services/      # API logic (axios functions, etc.)
β”‚   β”‚   β”œβ”€β”€ hooks/         # Custom React hooks (optional)
β”‚   β”‚   β”œβ”€β”€ context/       # Global state providers (AuthContext, etc.)
β”‚   β”‚   └── styles/        # CSS or Tailwind config (optional)
β”‚
β”œβ”€β”€ .gitignore             # Ignore .env, node_modules, build folders, etc.
β”œβ”€β”€ README.md              # Project overview and setup guide

πŸ› οΈ Tech Stack

Layer Tech
Frontend React, Axios
Backend Node.js, Express
DB MySQL
Styling Tailwind CSS
Auth JWT
Config Dotenv

βœ… Getting Started

πŸ”§ Backend Setup

# Go to backend folder
cd backend

# Install dependencies
npm install
PORT=5000
DATABASE_URL=your_database_url
JWT_SECRET=your_jwt_secret
npm run dev
# OR
node index.js
# Go to dashboard folder
cd ../dashboard

# Install dependencies
npm install
REACT_APP_API_URL=http://localhost:5000/api
npm start
# Ignore environment files
*.env

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •