Skip to content

2023-GDSC-KAIST/backend-assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node-Express-Mongoose-with-Typescript

A node-express-mongoose-with-typescript boilerplate for beginners.

Usage

You should write your own mongodb URL on .env.

git clone https://github.com/Byunk/node-express-mongoose-with-typescript.git
cd node-express-mongoose-with-typescript
npm install
cp .env.example .env
npm dev

Code Architecture

src
├── app
│   ├── application.ts
│   ├── controllers
│   │   ├── index.ts
│   │   └── user.controller.ts
│   ├── index.ts
│   ├── routes
│   │   ├── application.router.ts
│   │   ├── index.ts
│   │   └── users.router.ts
│   ├── schemas
│   │   ├── index.ts
│   │   └── user.schema.ts
│   └── util
│       └── logger.ts
└── index.ts

Logger

It provides the Winston logger util by default.

You don't have to use console.log. Instead, import logger util and use logger

logger.info('info')
logger.warn('warn')
logger.error('error')

Screen Shot 2023-02-08 at 3 21 40 PM

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published