Giter Site home page Giter Site logo

kirillonishuk / seans-typescript-nodejs-crud-rest-api-boilerplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sean-bradley/seans-typescript-nodejs-crud-rest-api-boilerplate

0.0 1.0 0.0 831 KB

A minimal and easy to follow example of what you need to create a CRUD style API in NodeJs using TypeScript

License: MIT License

Dockerfile 8.49% HTML 1.53% TypeScript 89.98%

seans-typescript-nodejs-crud-rest-api-boilerplate's Introduction

Seans-TypeScript-NodeJS-CRUD-REST-API-Boilerplate

MIT License

Rememeber, No guarantees, or even fit for a particular purpose.

This project will be updated slowly as required, so stay tuned.

If you have a suggestion, or you want to contribute some code, you are free to make a pull request.

Your contributions will be visible since this project is public.

Setup

npm install

Development with nodemon and tsc --watch

npm run dev

Then visit http://localhost:3000/cats

Run without nodemon and tsc --watch

npm start

Then visit http://localhost:3000/cats

Swagger

Visit http://localhost:3000/swagger to view the OPENAPI document in Swagger-UI Swagger-UI

Video tutorial on setting up Swagger in an existing NodeJS TypeScript API

Add Swagger-UI Documentation To Existing NodeJS TypeScript API

Continuous Integration and Deployment

I've also added gitlab-ci.yml and dockerised with Docker-Compose. See video tutorial on how all this works. CI/CD a NodeJS API with Docker-Compose and GitLab

Heroku

You can also test this on heroku https://seans-typescript-nodejs-crud.herokuapp.com/cats

and view the Swagger-UI https://seans-typescript-nodejs-crud.herokuapp.com/swagger

Deploy

Usage

List all records

Example Get all records

Post (Create) Record

Example Post (Create) new record

Get by Id

Example Get by ID

Put (Update) Record

Example Put (Update)

Delete Record

Example Delete

seans-typescript-nodejs-crud-rest-api-boilerplate's People

Contributors

sean-bradley avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.