Mocking up web app with Reactive
-
🎨 Tailwindcss - A utility-first CSS framework packed with classes
-
🦾 TypeScript, of course
-
🥊 Git hooks with lefthook
-
⚙️ Unit Testing with Vitest
-
🔎 Inspect code with - Vite Inspect, visit it at
/__inspect. code visualization (open stats.html file).
Reactive requires Node >=20.x
Create a repo from this template on GitHub.
If you prefer to do it manually with the cleaner git history
npx degit ws-rush/reactive my-reactive-app
cd my-reactive-app
pnpm i # If you don't have pnpm installed, run: npm install -g pnpmWhen you use this template, try follow the checklist to update your info properly
- Remove the
.githubfolder - Clean up the READMEs and remove routes
- Remove tests and write your own
And, enjoy :)
Just run and visit http://localhost:5173
pnpm devTo build the App, run
pnpm buildAnd you will see the generated file in dist that ready to be served.
First, build the reactive image by opening the terminal in the project's root directory.
## SPA build
podman build -t reactive-spa -f apps/web/Containerfile.spa apps/web
## MPA build
podman build -t reactive-mpa -f apps/web/Containerfile.mpa apps/webRun the image and specify port mapping with the -p flag.
## SPA run
podman run --rm -p 8080:80 reactive-spa:latest
## MPA run
podman run --rm -env-file apps/web/.env -p 3000:3000 reactive-mpa:latestConfigure apps is a headeach, I loved vitesse template for vue, so I decided do one for react.