Work in progress
Project template for building fullstack TypeScript applications.
Name | Description |
---|---|
api | Empty Node.js app |
web | React Web app (SPA) |
mobile | ReactNative app using Expo |
Name | Description |
---|---|
sdk | An SDK packages which is intended to be published on npm |
utils | Code which is used in multiple packages in the project |
types | TypeScript types which are used in multiple packages in the project |
git clone git@github.com:bene/template.git
rm -rf .git
git init
Replace all occurrences of @template
with the name of the project.
Often not all of the default packages are needed.
rm -rf apps/mobile
Or packages should have a different name
mv packages/utils packages/shared
The dependencies are not updated automatically and will be outdated most of the time.
yarn
yarn outdated
To start all apps Turborepo is used.
yarn dev
Option | Description | Requirements |
---|---|---|
Dokku | CI/CD to Dokku | SSH_PRIVATE_KEY repo secret containing an SSH key to access the Dokku serverdeploy-dokku.yml must be updated to use the correct git_remote_url |
Cloud Run | Serverless platform from Google | Setup in Cloud Console |
Docker | Run Docker image manually | None |
Option | Description | Requirements |
---|---|---|
Netlify | Static site hosting platform | Setup in console |
Self-hosted | Traditionally way of deploying web apps | File server (e.g. Caddy) |