Basic template for web development
- Clone the project
npm install
npm start
- For debugging in VSCode:
ctrl-shift-p > Debug: Toggle Auto Attache > Only With Flag
- Website should be served on http://localhost:3000
npm run check
npm run build
- Setup database
- Everything in
client/static
is copied into the public folder - Routes specified in
server/routes.json
will serveindex.html
to make the SPA work prod
anddev
build have the same architecture:- client/
- build/
- <content of static folder>
- server/
- build/
- client/
- client/tsconfig.json is only useful for error detection, client ts compilation is done by
esbuild
and most options are ignored - server and clients dependencies are separated but devDepencies are not
Generating and running migrations requires the project to be built. In dev environment, TYPEORM_SYNCHRONIZE
can be set to true.
- Generate:
npm run migration:generate -- <name>
- Run:
npm run migration:run -- <name>
TypeORM CLI is accessible using npm run typeorm
- TypeScript
- ESLint (with typescript-eslint)
- React
- SASS
- esbuild
- Node.js
- Next.js