Skip to content

Commit

Permalink
Merge pull request #10 from DARSHANCSE/develop-scaffolder
Browse files Browse the repository at this point in the history
[FEAT] : Added git init , git remote add and added scaffolding for angular.
  • Loading branch information
shivasankaran18 authored Feb 23, 2025
2 parents 160d6f8 + 2e70ea7 commit 8b8df1c
Show file tree
Hide file tree
Showing 5 changed files with 330 additions and 382 deletions.
20 changes: 12 additions & 8 deletions apps/web/app/api/scaffold/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ import { jwtAuthts , jwtAuthdjango} from '@/app/scripts/Auth/jwt'
import path from 'path'
import fs from 'fs/promises'
import { installDjangoDependencies } from '@/app/scripts/backend/django'
import createAngularTS from '@/app/scripts/frontend/angularts'
import simpleGit from 'simple-git'
import { setupNextAuth } from '@/app/scripts/Auth/nextAuth'
import { setupPassport } from '@/app/scripts/Auth/passport'
import { setupPrisma } from '@/app/scripts/orms/prismaSetup'
import { setupDrizzle } from '@/app/scripts/orms/drizzleSetup'
import { setupMongoose } from '@/app/scripts/orms/mongoSetup'

import { setupDrizzle } from '@/app/scripts/orms/drizzleSetup'
export async function POST(req: NextRequest) {
try {
const config = await req.json()
Expand All @@ -29,6 +29,7 @@ export async function POST(req: NextRequest) {
console.log(`[Emit Logs]: ${message}`);
};


switch(config.frontend) {
case 'react-ts':
await createReactTS(config, projectDir,emitLog)
Expand All @@ -39,15 +40,18 @@ export async function POST(req: NextRequest) {

case 'django':
await installDjangoDependencies(projectDir);

break;
case 'vue':
await createVueJS(config, projectDir,emitLog)
case 'vue-ts':

await createVueTS(config, projectDir,emitLog)

await createVueTS(config, projectDir)

await createVueTS(config, projectDir,emitLog)
break
case 'angularts':
await createAngularTS(config, projectDir)

break
default:
throw new Error(`Unsupported frontend: ${config.frontend}`)
Expand All @@ -70,7 +74,7 @@ export async function POST(req: NextRequest) {

switch(config.authentication) {
case 'jwt':
await jwtAuth(config, projectDir,emitLog);
await jwtAuthts(config, projectDir,emitLog);
break
case 'nextauth':
await setupNextAuth(config, projectDir,emitLog);
Expand Down Expand Up @@ -134,7 +138,7 @@ Thumbs.db
await jwtAuthts(config,projectDir,emitLog);
break;
case 'django':
await jwtAuthdjango(config, projectDir,emitLog);
await jwtAuthdjango(config, projectDir);
break;
default:
break;
Expand Down
Loading

0 comments on commit 8b8df1c

Please sign in to comment.