Skip to content

KriteshTimsina/sastobazaar-ecommerce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

SastoBazaar πŸ›’

Fullstack eCommerce platform built with Next.js 14 (frontend) and Node.js + Express (backend).

This is a monorepo setup containing both frontend and backend folders, managed with a unified package.json for development, build, and code quality checks.


πŸ“ Project Structure

sastobazaar/
β”œβ”€β”€ backend/      β†’ Express.js server
β”œβ”€β”€ frontend/     β†’ Next.js 14 client with TailwindCSS
└── package.json  β†’ Monorepo scripts and dev tools

πŸš€ Getting Started

1. Install dependencies for all packages

npm run install-all

1. Setup environment variables

npm run set-env

2. Run the development environment (both frontend and backend)

npm run dev

πŸ“¦ Available Scripts

Script Description
dev Run both frontend and backend in development mode
server Run backend server only
client Run frontend client only
build-server Build backend
build-client Build frontend
build-all Build both frontend and backend
preview-server Preview backend after build
preview-client Preview frontend after build
preview-all Preview both frontend and backend
check-types Run TypeScript checks on both apps
check-format Check code formatting with Prettier
check-lint Run ESLint on project
check-all Run formatting, linting, and type checks
format Format all code with Prettier
set-env Setup environment variables

πŸ’… Frontend Stack

  • Next.js 14
  • TailwindCSS
  • TypeScript
  • React Query
  • Auth.js

πŸ”™ Backend Stack

  • Node.js
  • Express.js
  • TypeScript

πŸ›  Dev Tools

  • concurrently for running multiple scripts
  • Git hooks with husky and pretty-quick
  • Unified linting and formatting setup

🀝 Contributing

We welcome contributions from everyone! Here’s how you can help:

1. Fork the Repository

Click the "Fork" button at the top of this page to create your own copy.

2. Clone Your Fork

git clone https://github.com/your-username/sastobazaar.git
cd sastobazaar

3. Create a New Branch

git checkout -b feat/your-feature-name

4. Make Your Changes

Follow existing code conventions, write clean and meaningful code, and add tests where appropriate.

5.Format and lint

npm run format
npm run check-lint

6. Commit and push

git add .
git commit -m "Add: your feature description"
git push origin feature/your-feature-name

7. Open a Pull Request

Go to the original repo on GitHub and open a new pull request from your fork.

πŸ“„ License

MIT


Crafted with ❀️ by Kritesh Timsina

About

Sastobazaar - Where shopping meets convenience. Work in progress 🚧

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages