student-help 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +15 -0
- package/README.md +44 -0
- package/bin/student-help.js +14 -0
- package/cli.mjs +1415 -0
- package/commands/db.ts +59 -0
- package/commands/dev.ts +23 -0
- package/commands/generate/auth.ts +31 -0
- package/commands/generate/install.ts +34 -0
- package/commands/generate/resource.ts +184 -0
- package/commands/new.ts +179 -0
- package/package.json +62 -0
- package/templates/backend/controller.ts +41 -0
- package/templates/backend/dto.ts +20 -0
- package/templates/backend/module.ts +16 -0
- package/templates/backend/service.ts +52 -0
- package/templates/backend/student-help.controller.ts +332 -0
- package/templates/backend/student-help.module.ts +9 -0
- package/templates/backend/student-help.service.ts +697 -0
- package/templates/frontend/page.tsx +13 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
ISC License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Student Help
|
|
4
|
+
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any purpose
|
|
6
|
+
with or without fee is hereby granted, provided that the above copyright notice
|
|
7
|
+
and this permission notice appear in all copies.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
10
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
11
|
+
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
12
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
|
13
|
+
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
14
|
+
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
|
15
|
+
THIS SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# 🎓 Student Help
|
|
2
|
+
|
|
3
|
+
A **mini-framework** that shortcuts **NestJS + Next.js** setup for students. Write one command, get a full-stack project.
|
|
4
|
+
|
|
5
|
+
## ⚡ Quick Start
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g student-help
|
|
9
|
+
student-help new my-app
|
|
10
|
+
cd my-app
|
|
11
|
+
docker-compose up -d
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Done! Your project is running at:
|
|
15
|
+
- **Frontend**: http://localhost:3001
|
|
16
|
+
- **Backend**: http://localhost:3000
|
|
17
|
+
|
|
18
|
+
## 🎁 What You Get
|
|
19
|
+
|
|
20
|
+
✅ **Backend** - NestJS with StudentHelp module (50+ utilities)
|
|
21
|
+
✅ **Frontend** - Next.js with Tailwind CSS
|
|
22
|
+
✅ **Database** - PostgreSQL ready to use
|
|
23
|
+
✅ **Docker** - Everything containerized
|
|
24
|
+
✅ **Auth** - JWT setup included
|
|
25
|
+
|
|
26
|
+
## 📖 Commands
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
student-help new app-name # Create new project
|
|
30
|
+
student-help generate:auth # Add authentication
|
|
31
|
+
student-help generate:resource User # Create CRUD endpoints
|
|
32
|
+
student-help --help # See all commands
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## 🚀 Perfect For
|
|
36
|
+
|
|
37
|
+
- 👨🎓 Students learning full-stack
|
|
38
|
+
- 🏗️ Quick prototypes
|
|
39
|
+
- 📚 School/university projects
|
|
40
|
+
- 💼 Rapid MVPs
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
**Get started in 2 minutes.** 🚀
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { fileURLToPath } from 'url';
|
|
3
|
+
import path from 'path';
|
|
4
|
+
|
|
5
|
+
// Get absolute path to the cli.js file
|
|
6
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
7
|
+
const __dirname = path.dirname(__filename);
|
|
8
|
+
const cliPath = path.resolve(__dirname, '../cli.mjs');
|
|
9
|
+
|
|
10
|
+
// Dynamically import and run CLI
|
|
11
|
+
import(cliPath).catch(err => {
|
|
12
|
+
console.error('Failed to load CLI:', err.message);
|
|
13
|
+
process.exit(1);
|
|
14
|
+
});
|