GithubHelp home page GithubHelp logo

mksteele / ts-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lukeautry/ts-app

0.0 1.0 0.0 836 KB

Boilerplate project for a TypeScript API (Express, tsoa) + UI (React/TSX)

TypeScript 91.16% CSS 5.27% HTML 1.19% Dockerfile 0.28% Shell 0.62% JavaScript 1.49%

ts-app's Introduction

ts-app: Full-stack TypeScript Development Framework

This project is a starting point for developing an API-first application using TypeScript, Node.js, and React.

Unlike tools such as create-react-app, this project aims to use a "domain-driven" approach. The developer designs the API (and database, if applicable). A client library is automatically generated from the API, providing a statically typed interface with which to interact with the API from the React UI.

The overall goal is to provide a type-safe and productive developer experience for rapid web application development.

Technologies Used

  • TypeScript
  • Backend
    • Node.js
    • Express
    • tsoa
      • Generates Express Routes from TypeScript controllers
      • Generates OpenAPI ("Swagger") specification, enabling automatic documentation and client library generation
    • PostgreSQL as RDBMS
      • TypeORM for code-first database migrations
        • Optional: ORM-like queries
    • Redis for caching/messaging
  • Frontend
    • React.js
    • openapi-ts-client-gen for API client generation
    • SASS as a CSS preprocessor
    • webpack for bundling static assets and dev server
    • Aside from the items above, UI remains fairly unopinionated and assumes some knowledge of how to build a React app
  • Developer environment
    • docker and docker-compose for non-Node.js project dependencies
    • Single start script that live reloads the API, UI, and related services
    • VSCode launch.json settings have been included to allow debugging
  • Testing
    • Mocha/Chai tests for API

Getting Started

System Requirements

Starting the app

  • yarn to install dependencies
  • yarn start to start environment

alt text

Database Operations

Creating a new migration

Update database with pending migrations

  • yarn db:update

Contributing

  • Features and bug fixes welcome

ts-app's People

Contributors

lukeautry avatar cipherzzz avatar

Watchers

James Cloos 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.