This repository contains a sample TypeScript project with separate client and server folders.
client/- Frontend codeserver/- Backend code
.env: Contains sensitive environment variables. Do not commit this file to version control..env.example: Template for required environment variables. Copy this file to.envand fill in the values.
- Install dependencies:
- Navigate to
client/andserver/folders and runnpm install.
- Navigate to
- Set up environment variables:
- Copy
.env.exampleto.envin bothclientandserverfolders and update the values as needed.
- Copy
- Build and run:
- Use
npm run buildandnpm startas appropriate in each folder.
- Use
.envis ignored by git (see.gitignore).- Build artifacts and
node_modulesare also ignored.