Skip to content
/ sidebase Public template
forked from sidebase/sidebase

Production-tested Nuxt 3 starter with a well-working, opinionated configuration

Notifications You must be signed in to change notification settings

acelords/sidebase

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sidebase

sidebase

With sidebase every new project feel like a fun side-project while scaling to production.

sidebase is a modern, best-practice, batteries-included fullstack-app starter based on Nuxt 3 and TypeScript.

Quick start

  1. Clone the repository
    git clone https://github.com/sidestream-tech/sidebase my-app
  2. Go into the app/ directory
    cd my-app/app
  3. Install the dependencies
    npm i
  4. Start developing (with database, backend, API, ... running) at localhost:3000
    npm run dev

Features

The key features are:

  • 🎒 Fullstack: Develop frontend and backend in a single TypeScript code base
  • 🏎️ Fast to code: Database, example tests, example components and example pages are all there for you to fill out
  • 🐛 Fewer bugs: Strong data-validation using zod to validate all transferred data, fully typed API-routes, strict DB models via TypeORM
  • 😊 Easy to use: Designed to follow best practices and to be ready-to-go for development, without additional dev-dependencies like docker that make it hard to get started
  • 🚀 Ready for launch: Github Actions CI, Dockerfile, easy switch to most popular databases are all there, out of the box (get in touch if you're missing something)

To facilitate this sidebase bootstraps a nuxt 3 project that permits developing a backend and a frontend using just Nuxt 3 with overarching TypeScript support. We want to show the world how enjoyable end-to-end typescript programming can be, displacing the myth that JS/TS-backends are no good. This starter solves a lot fo the "real-world" problems that occur after you start using Nuxt or any other framework: How to write backend tests? How to write component tests? How to calculate test coverage? How to integrate a database? How to build a docker image? ...?

If you have any problems with this project (e.g., setting it up on your PC) open an issue and we'll figure it out together with you 🎉

Commands and Further Documentation

You can also:

  • npm run story for isolated component development using histoire (see ShowCase.story.vue as example)
  • npm run test for testing (see ShowCase.test.ts as example)
    • npm run test -- -u to update the component snapshots
    • npm run test -- -t "test describe text" to run a specific test
    • npm run test:ui to start the vitest UI
  • npm run lint for linting using eslint
  • npm run build for bundling using vite

Have a look at the more detailed readme of the fullstack app to see a broader, more in-depth explanation and documentation of commands.

About

Production-tested Nuxt 3 starter with a well-working, opinionated configuration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 80.9%
  • Vue 16.4%
  • Dockerfile 2.2%
  • Shell 0.5%