Skip to content

samatechtw/fullstack-template

Repository files navigation

Fullstack Template

Fullstack template for Vue3 + Rust/Axum apps.


Usage

This is a rough template for a full stack app, using Vue3 for the frontend and Rust/Axum for the backend API.

  1. 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
  1. Rename the backend/fullstack-api folder to backend/cool-api, and update information in the Readme/package.json.

  2. Provide S3_SECRET_ACCESS_KEY and SENDGRID_API_KEY, if you plan to use email or object storage features.

Prerequisites

Setup

# Clone monorepo
git clone [email protected]:samatechtw/fullstack-template

# Install packages
pnpm i

Run

# 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

Development

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

About

Full-stack template for Vue3 + Rust/Axum apps.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages