-
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: updated JS-PostgreSQL-Prisma-NoAuth-Template
Co-Authored-By: Mr Sharafdin <83120892+isasharafdin@users.noreply.github.com>
- Loading branch information
1 parent
bd98295
commit 0dff088
Showing
2 changed files
with
5 additions
and
3 deletions.
There are no files selected for viewing
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}`); | ||
}); |