Skip to content

Full stack application template - TypeScript, Rollup, React, Koa, Pg

License

Notifications You must be signed in to change notification settings

szilu/full-stack-template-pg

Repository files navigation

Minimalistic full stack application template - TypeScript, Rollup, React, Koa, Pg

Description

full-stack-template-pg is a minimalistic full stack application template. It uses TypeScript, Rollup for bundling, React for UI, Koa for backend API and Pg for database.

Commands

npm run watch-client

Watch source file changes and recompile + bundle client.

npm run build-client

Build client (production build).

npm run watch-server

Watch source file changes and recompile server.

npm run build-server

Build server (production build).

./test-server.sh

Run server in development mode (restart on source changes). The script connects to a database named "test" on localhost. The test database can be empty.

Directory structure

  • src: Sources
    • client: Client sources
    • server: Server sources
    • common: Common sources (eg. common types, validators)
  • build: Compiled server application
  • dist: Client web root (including client application bundle)
    • dev.html: Development HTML (open http://localhost:8000/dev.html)
    • index.html: Production HTML
    • assets-dev: Assets (development bundle)
    • assets: Assets (production bundle)

About

Full stack application template - TypeScript, Rollup, React, Koa, Pg

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published