Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ The following project templates are available:
- [x] Express.js Server
- [x] Nest.js Server
- [x] Django Web App
- [x] Laravel web API / web App
- [ ] Ruby on Rails API
- [ ] Flask API

Expand Down
12 changes: 10 additions & 2 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
promptOrm,
promptProjectName,
promptProjectStack,
promptWebType,
} from "./src/utils/prompts.js"
import { createFrontendProject } from "./src/utils/create-frontend-project.js"

Expand All @@ -38,6 +39,7 @@ async function startProject() {
let database
let orm
let language
let webType

const initialMsg = `Simplify Project Setup with the. ${chalk.green(
toolName
Expand All @@ -60,16 +62,22 @@ async function startProject() {
await createFrontendProject(projectName, framework, language)
} else if (projectStack === "backend") {
framework = await promptBackendFramework()
if(framework != 'laravel'){
null;
}else{
webType = await promptWebType(framework);
};

initDB = await promptInitDatabase()

if (initDB) {
database = await promptDatabase()


orm = await promptOrm(database)
orm = await promptOrm(database, framework)
}

await createBackendProject(projectName, framework, database, orm)
await createBackendProject(projectName, framework, database, orm, webType)
}
}

Expand Down
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": {
"mongodb/laravel-mongodb": "*"
}
}
Loading