Git Product home page Git Product logo

zettelwirtschaft's Introduction

Yet Another Monorepo Example

Monorepo template for a fullstack TypeScript application based on React and Express.

Usage

yarn bootstrap installs all dependency and links the packages.

Production

yarn build transpiles all TypeScript files to JavaScript and bundles the frontend. The generated files are deleted using yarn clean.

  • yarn backend:start starts the backend express serve and serves the rest endpoints and frontend on localhost:8000.

Development

The setup supports both reloading code and debugging using tsc, nodemon and webpack-dev-server.

yarn watch transpiles all TypeScript files to JavaScript and watches for changes in the source code.

  • backend:serve serves the rest endpoints on localhost:8000 and restart the backend on file change.
  • frontend:serve serves the frontend using the webpack-dev-server on localhost:8000 and reloads the application on file change using hot module replacement.

Tools

  • Lerna & yarn links packages together and shares dependencies between them using yarn workspaces.
  • TypeScript transpiles TypeScript sources to JavaScript.
  • nodemon serves a node application and automatically restarts it when source files change.
  • webpack bundles JavaScript, HTML and CSS files for the web.
  • webpack-dev-server serves a webpack application and refreshes the browser on change.
  • eslint reports common mistakes and tries to fix them using predefined rules.
  • prettier formats code.

Technologies

Backend

  • Express web framework for serving the backend.
  • Ts.ED framework on top of express providing decorators for REST endpoints, dependency injection, swagger and mongodb.

Frontend

  • React for building frontend user interfaces.
  • Restful-React provides react hooks for interacting with backends exposing REST endpoints.

zettelwirtschaft's People

Contributors

toschmidt avatar dependabot-preview[bot] avatar

Watchers

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