An open API service indexing awesome lists of open source software.

https://github.com/shwilliam/fullstack-ts-boiler

👮‍♀️ Full-stack type-safety w/ TypeScript and GraphQL
https://github.com/shwilliam/fullstack-ts-boiler

graphql graphql-code-generator typegraphql typescript

Last synced: 8 months ago
JSON representation

👮‍♀️ Full-stack type-safety w/ TypeScript and GraphQL

Awesome Lists containing this project

README

          

# Full-stack TypeScript Boilerplate

> Type-safe JavaScript throughout the stack

## About

This is a simplistic example of a fullstack web-app with type-safety throughout the back- and front-end. This is acheived through a combination of TypeScript, TypeGraphQL and GraphQL code generator. The GraphQL schema and resolvers are written with TypeGraphQL in TypeScript, which is used to generate corresponding TS types to be used in our React frontend.

## Installation

### Server

- Install dependencies (`cd server && npm i`)
- Start local server (`npm start`)

### Client

- Install dependencies (`cd client && npm i`)
- Start local development server (`npm start`)

## Contributing

The purpose of this repo is to serve as a boilerplate or reference. I therefore wish to avoid building out more features with similar implementations of what already exists. That being said, I absolutely encourage contributions that fix any bugs, improve code readability or developer experience. Feel free to post any questions or suggestions in the project's [issues](https://github.com/shwilliam/fullstack-ts-boiler/issues). If you wish to work on this project:

1. Fork [this project](https://github.com/shwilliam/fullstack-ts-boiler)
2. Create a branch (`git checkout -b new-branch`)
3. Commit your changes (`git commit -am 'add new feature'`)
4. Push to the branch (`git push origin new-branch`)
5. [Submit a pull request!](https://github.com/shwilliam/fullstack-ts-boiler/pull/new/master)