Skip to content

Commit 2b2786d

Browse files
committed
feat : go lang repo and node repo
1 parent 4937d00 commit 2b2786d

File tree

4 files changed

+20
-7
lines changed

4 files changed

+20
-7
lines changed

package-lock.json

+5-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lets-create-api",
3-
"version": "1.0.6",
3+
"version": "1.0.7",
44
"description": "An awesome CLI tool designed to accelerate the creation of Backend projects, making it effortless to build RESTful APIs with various backend and database technology combinations.",
55
"main": "index.js",
66
"bin": {

src/cli/cli.js

+12-3
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,18 @@ const runCLI = async () => {
7777
'We apologize for any inconvenience! 🙏 Exciting news awaits as we work on bringing This compatibility. Stay tuned for the upcoming release. 🚀🌟#ComingSoon',
7878
)
7979
} else if (backend === 'Go Lang' && database === 'MongoDB') {
80-
console.log(
81-
'We apologize for any inconvenience! 🙏 Exciting news awaits as we work on bringing This compatibility. Stay tuned for the upcoming release. 🚀🌟#ComingSoon',
82-
)
80+
cloneRepo(repoName, config.GoLangMongo)
81+
const githubResponse = await prompt({
82+
type: 'confirm',
83+
name: 'github',
84+
message: 'Do you want to push to a new GitHub repository?',
85+
initial: true,
86+
})
87+
const { github } = { ...githubResponse }
88+
if (github) {
89+
await handleGitHubFlow(repoName)
90+
}
91+
greetings(repoName)
8392
} else if (backend === 'Go Lang' && database === 'MySQL') {
8493
console.log(
8594
'We apologize for any inconvenience! 🙏 Exciting news awaits as we work on bringing This compatibility. Stay tuned for the upcoming release. 🚀🌟#ComingSoon',

src/config/config.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const config = {
22
ExpressTSMongo: 'https://github.com/BoBsRepository/create-express-init.git',
3-
ExpressJSMongo: 'https://github.com/Puskar-Roy/myProfile-backend.git',
3+
ExpressJSMongo: 'https://github.com/BoBsRepository/create-express-js-template.git',
4+
GoLangMongo: 'https://github.com/BoBsRepository/create-go-mongodb-template.git',
45
}
56

67
module.exports = { config }

0 commit comments

Comments
 (0)