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.
sastobazaar/
βββ backend/ β Express.js server
βββ frontend/ β Next.js 14 client with TailwindCSS
βββ package.json β Monorepo scripts and dev tools
npm run install-all
npm run set-env
npm run dev
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 |
- Next.js 14
- TailwindCSS
- TypeScript
- React Query
- Auth.js
- Node.js
- Express.js
- TypeScript
concurrently
for running multiple scripts- Git hooks with
husky
andpretty-quick
- Unified linting and formatting setup
We welcome contributions from everyone! Hereβs how you can help:
Click the "Fork" button at the top of this page to create your own copy.
git clone https://github.com/your-username/sastobazaar.git
cd sastobazaar
git checkout -b feat/your-feature-name
Follow existing code conventions, write clean and meaningful code, and add tests where appropriate.
npm run format
npm run check-lint
git add .
git commit -m "Add: your feature description"
git push origin feature/your-feature-name
Go to the original repo on GitHub and open a new pull request from your fork.
MIT
Crafted with β€οΈ by Kritesh Timsina