Skip to content

AsadAnik/tech-blog-api

Repository files navigation

Tech Blog API with TypeScript Node

Check Live API Doc: [https://blog-tech-api.onrender.com/api-doc]

Check Local API Environment: [http://localhost:8080/api-doc]

Installing

npm install or yarn

Creating .env file

Copy example.env and create new file name as .env. Add neccessary enviroment keys as your need.

Start dev server with Swagger documentation

npm run dev:doc or yarn dev:doc

Start with ts-node

npm run start or yarn start

Start with ts-node and Swagger documentation

npm run start:doc or yarn start:doc

Build Swagger documentation

npm run generate-doc or yarn generate-doc

CLI commands to make your work-flow easier

Make Model for resource

npm run make:model Post or yarn make:model Post

Make Service for resource

npm run make:service post or yarn make:service post

Make Controller for resource

npm run make:controller post or yarn make:controller post

Make Route for resource

npm run make:route post or yarn make:route post

Make all at once

npm run make:all post or yarn make:all post

Make all with Model

npm run make:all:schema post or yarn make:all:schema post

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages