Giter VIP home page Giter VIP logo

unwinder-server's Introduction

Node TypeScript Express Docker Starter

node typescript express docker logos

๐Ÿ“– Definitions

Library Description
Node.js JavaScript runtime built on Chrome's V8 JavaScript engine
Express Minimal and flexible Node.js web application framework for creating APIs.
TypeScript A strongly typed programming language that builds on JavaScript, giving you better tooling at any scale.
ESLint Statically analyzes your code to quickly find problems.
Jest A delightful JavaScript testing framework with a focus on simplicity.
Docker Package software into standardized units for development, shipment and deployment

๐Ÿง‘โ€๐Ÿซ About

Node-TypeScript-Express-Docker-Starter is a template repo for building a Node.js APIs with TypeScript, Express and Docker. This template contains a minimal ESLint configuration to enforce coding styles, and comes equipped with Jest for unit and integration testing. Additionally, this project's API routes are structured similarly to how components are organized in an Angular project. Controllers are grouped by the API resource they serve, and the associated unit (spec.ts) and integration (e2e.ts) files live in the same directory.

๐Ÿง‘โ€๐Ÿ’ป Development

Install Docker Desktop, VS Code and Git. Click the green Use this template button to copy this repo to your GitHub account. Once you've copied the repo, clone it to your workspace (be sure to replace my URL with the URL to the repo you generated by clicking Use this template):

Download and Install

git clone https://github.com/bobbyg603/node-typescript-express-docker-starter

Install the project's dependencies:

npm i

Testing

Run the unit and integration tests to ensure everything installed correctly:

npm test && npm run e2e

You can also run and debug tests from within the VS Code Testing Explorer by installing Jest Test Explorer.

VS Code Jest Test Explorer Debug

Developing

If you'd like to automatically build and restart the development sever when source files are changed you can can run the watch command:

npm run watch

The development server can also be started without watching the local file system or attaching the debugger:

npm start

If you'd like to attach the VS Code Debugger to a Node.js instance running on your local machine use the Launch Program task.

VS Code Launch Program

The VS Code Debugger can also be attached to a Node.js instance running inside a Docker container via the Docker: Node.js Launch task.

Docker Node JS Launch

The development server should begin listening for web requests. If you navigate to http://localhost:3000 in your browser you should see something that resembles the following:

Development Server Running

Contributing

If you believe that this example can be improved, please open an issue or submit a pull request!

unwinder-server's People

Contributors

bobbyg603 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.