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 |
---|---|
frontend-template.com | cool-app.com (your domain) |
learn-frontend | cool-app |
Learn Frontend | Cool App |
learn-api | cool-api |
Learn API | Cool API |
api-learn | api-cool |
learn_api | learn_api |
learn-ci | cool-ci |
-
Rename the
backend/fullstack-api
folder tobackend/cool-api
, 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