Fullstack template for Vue3 + Rust/Axum apps.
This is a rough template for a full stack app, using Vue3 for the frontend and Rust/Axum for the backend API.
- Clone or copy/paste all files, and choose a name for your app (e.g. Cool App). Replace text according this table in order (case sensitive):
Find | Replace |
---|---|
fullstack-template.com | cool-app.com (your domain) |
fullstack-template | cool-app |
Fullstack Template | Cool App |
fullstack-api | cool-api |
Fullstack API | Cool API |
fullstack_api | learn_api |
fullstack-ci | cool-ci |
-
Rename the
backend/fullstack-api
folder tobackend/cool-api
, and update information in the Readme/package.json. -
Rename the
web/fullstack-template
folder toweb/cool-app
, and update information in the Readme/package.json. -
Provide
S3_SECRET_ACCESS_KEY
andSENDGRID_API_KEY
, if you plan to use email or object storage features.
- Install PNPM
# Clone monorepo
git clone [email protected]:samatechtw/fullstack-template
# Install packages
pnpm i
# Run site in development mode
npm run prod:web:run
# Run web admin
npm run prod:web-admin:run
Build
# Build web app for production
npm run prod:web:build
# Build web admin
npm run prod:web-admin:build
Add a new frontend folder/module
- Create the folder in
web/src
- Create
index.ts
and export any files used externally - Add to tsconfig
paths