-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: updating JS-NoAuth-Templates #192
updated the js part of the templates
- Loading branch information
Showing
22 changed files
with
44 additions
and
38 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
packages/yonode-templates/JS-MongoDB-Mongoose-NoAuth-Template/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.vscode | ||
/node_modules | ||
.env | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ | |
"uuidv4": "^6.2.13" | ||
}, | ||
"devDependencies": { | ||
"yonode": "^0.7.0", | ||
"yonode": "^0.6.0", | ||
"nodemon": "^3.0.1" | ||
} | ||
} |
5 changes: 4 additions & 1 deletion
5
packages/yonode-templates/JS-MongoDB-Prisma-NoAuth-Template/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
/node_modules | ||
.vscode | ||
/node_modules | ||
.env | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
packages/yonode-templates/JS-MongoDB-Prisma-NoAuth-Template/src/app.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
// import the packages | ||
import express from "express"; | ||
import chalk from "chalk"; | ||
|
||
//import your files | ||
// import your files | ||
import { port } from "./config/initial.config.js"; | ||
import chalk from "chalk"; | ||
|
||
// Initializing the app | ||
// initializing the app | ||
const app = express(); | ||
app.use(express.json()); | ||
|
||
// rest of your code here | ||
|
||
|
||
app.listen(port, () => { | ||
console.log(`${chalk.green.bold("Server")} is listening on port ${port}`); | ||
}); |
3 changes: 2 additions & 1 deletion
3
packages/yonode-templates/JS-MongoDB-Prisma-NoAuth-Template/src/routes/router.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import express from "express"; | ||
|
||
const routerName = express.Router(); | ||
export default routerName; | ||
|
||
export default routerName; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ | |
"typeorm": "0.3.20" | ||
}, | ||
"devDependencies": { | ||
"yonode": "^0.7.0", | ||
"yonode": "^0.6.0", | ||
"nodemon": "^3.0.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
packages/yonode-templates/JS-MySQL-Prisma-NoAuth-Template/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
/node_modules | ||
.vscode | ||
/node_modules | ||
.env |
5 changes: 3 additions & 2 deletions
5
packages/yonode-templates/JS-MySQL-Prisma-NoAuth-Template/src/app.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
// import the packages | ||
import express from "express"; | ||
import chalk from "chalk"; | ||
|
||
//import your files | ||
// import your files | ||
import { port } from "./config/initial.config.js"; | ||
import chalk from "chalk"; | ||
|
||
// Initializing the app | ||
const app = express(); | ||
app.use(express.json()); | ||
|
||
// rest of your code here | ||
|
||
|
||
app.listen(port, () => { | ||
console.log(`${chalk.green.bold("Server")} is listening on port ${port}`); | ||
}); |
1 change: 1 addition & 0 deletions
1
packages/yonode-templates/JS-MySQL-Sequelize-NoAuth-Template/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.vscode | ||
/node_modules | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/yonode-templates/JS-MySQL-TypeORM-NoAuth-Template/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
.vscode/ | ||
.vscode | ||
node_modules/ | ||
|
||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/yonode-templates/JS-PostgreSQL-Prisma-NoAuth-Template/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.vscode | ||
/node_modules | ||
.env | ||
.env |
5 changes: 3 additions & 2 deletions
5
packages/yonode-templates/JS-PostgreSQL-Prisma-NoAuth-Template/src/app.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
// import the packages | ||
import express from "express"; | ||
import chalk from "chalk"; | ||
|
||
//import your files | ||
// import your files | ||
import { port } from "./config/initial.config.js"; | ||
import chalk from "chalk"; | ||
|
||
// Initializing the app | ||
const app = express(); | ||
app.use(express.json()); | ||
|
||
// rest of your code here | ||
|
||
|
||
app.listen(port, () => { | ||
console.log(`${chalk.green.bold("Server")} is listening on port ${port}`); | ||
}); |
1 change: 1 addition & 0 deletions
1
packages/yonode-templates/JS-PostgreSQL-Sequelize-NoAuth-Template/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.vscode | ||
/node_modules | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/yonode-templates/JS-PostgreSQL-TypeORM-NoAuth-Template/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.vscode/ | ||
.vscode | ||
node_modules/ | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters