I just started to learn React and noticed that having a full-stack repo supporting TypeScript in both server and client side is would be great idea. It helps me to understand better how TypeScript is compiled and put lots of configurations together for a better development experience.
- Yarn workspace - support maintaining and sharing dependencies across back-end and front-end.
- Angular - Angular 7.
- Express - Express server using TypeScript.
- GraphQL - On both server and client with Apollo Server Express and Apollo Angular respectively.
- TypeOrm - ORM to convert data from TypeScript to Postgres database.
- TypeGraphQL - Make my life easier to work with TypeScript and GraphQL.
- Lint - Tslint, check tslint.json file for more info.
- Test - Jest for both client and server.
- Husky + Lint-staged - Run tasks before committing.
- Clone this repo using
git clone https://github.com/Khang-Tran/fullstackTs-workspace.git
. - Move to its directory:
cd fullstackTs-workspace
. - Copy
.env.example
and change it to.env
, fill it with your own variables. - Run
yarn install
to install all dependencies. - Run
yarn dev
to fire up application.
- Go to Heroku, login or create a new account.
- Select
New
button andCreate new app
. - Go to
Resources
tab and search forHeroku Posgres
. - Select tier and click on the Postgres instance.
- It should open a new tab, go to
Settings
and click onView Credentials
button. - Fill the
.env
file with that data and you should be good.
MIT license, Copyright (c) 2019 Hoi Vu.