https://github.com/tamoziit/express-mongo-vite-ts-starter_package
A zero-config starter npm package to scaffold a Full-Stack monorepo with node, express & JWT-Auth REST API Backend & integrated Vite & React frontend template, written in TS.
https://github.com/tamoziit/express-mongo-vite-ts-starter_package
bcryptjs cli expressjs jwt-authentication nodejs npm-link npm-package npm-publish npx reactjs tailwindcss typescript vite
Last synced: about 2 months ago
JSON representation
A zero-config starter npm package to scaffold a Full-Stack monorepo with node, express & JWT-Auth REST API Backend & integrated Vite & React frontend template, written in TS.
- Host: GitHub
- URL: https://github.com/tamoziit/express-mongo-vite-ts-starter_package
- Owner: Tamoziit
- License: apache-2.0
- Created: 2025-06-12T15:08:37.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-06-14T17:03:20.000Z (4 months ago)
- Last Synced: 2025-07-28T16:41:53.801Z (2 months ago)
- Topics: bcryptjs, cli, expressjs, jwt-authentication, nodejs, npm-link, npm-package, npm-publish, npx, reactjs, tailwindcss, typescript, vite
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/express-mongo-vite-ts-starter
- Size: 26.4 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Express, Mongo, Vite, TS Fullstack Starter Project
### *A zero-config starter npm package to scaffold a fullstack monorepo with:*
- โ๏ธ **Backend**: Node.js + Express.js + MongoDB + TypeScript + JWT-Auth
- โ๏ธ **Frontend**: React.js + Vite + TypeScript---
## ๐ Usage
### Create in a new folder
```bash
npx express-mongo-vite-ts-starter my-app
```Creates:
```
current directory/
โโโmy-app/
โโโ backend/
โโโ frontend/
```### Create in current directory
```bash
npx express-mongo-vite-ts-starter
```Creates:
```
current directory/
โโโ backend/
โโโ frontend/
```---
## ๐ Project Structure
```
my-app/
โโโ backend/ # Express.js + MongoDB + TypeScript API for basic user authorization
โ โโโ ...
โโโ frontend/ # Vite + React + TypeScript Template App
โ โโโ ...
โโโ README.md # README.md with steps to setup .env & prerequite details
```---
## โ Prerequisites
**You will require the following, installed in your system, for the project to function properly:**
1. **Node.js** (use v20.0.0 or higher for better compatibility)
2. **Redis**: In-memory DB (v5.0.0.0 or higher)---
## ๐ Setup Instructions
### 1. Install dependencies
```bash
cd backend
npm install
cd ../frontend
npm install
```### 2. Configure Environment Variables
Create `.env` files in both `backend/` and `frontend/`:
#### Example backend `.env`
```
PORT=5000
MONGO_URI=mongodb://localhost:27017/your-db
JWT_SECRET=your-secret-key
NODE_ENV=developmentADMIN_PASSWORD=your-admin-password
```#### Example frontend `.env`
```
VITE_API_BASE_URL=http://localhost:5000/api
```---
## ๐งช Development
Under `backend/` execute:
```bash
npm run dev # Start backend
```Under `frontend/` execute:
```bash
npm run dev # Start frontend
```---
## ๐ค Publish Your App
Once you're ready to go live, build the frontend and deploy the backend. Tailor build steps to your hosting solution.
---
## ๐ Credits
Created by [Tamojit Das](https://github.com/Tamoziit)
---
## ๐ License
This CLI tool scaffolds projects without including the original repository's license.
---
*Let me know for potential issues & fixes for this project. Your feedback is extremely appreciable...*
*~ Tamojit Das*