Coder Social home page Coder Social logo

xiaoluoboding / self-hosted-app-starter Goto Github PK

View Code? Open in Web Editor NEW
68.0 3.0 6.0 15.86 MB

🪄 A starter for the self-hosted app, help you to build your next full-stack project. https://sha-starter.onrender.com

Home Page: https://sha-starter.up.railway.app/

License: MIT License

Dockerfile 1.05% Go 50.80% JavaScript 0.46% HTML 0.51% Vue 32.01% CSS 3.02% TypeScript 11.81% Shell 0.34%
self-hosted docker-image golang starter starter-kit starter-project tailwindcss vue3

self-hosted-app-starter's Introduction

Self Hosted App Starter

A starter for the self-hosted app, help you to build your next full-stack project.

Live DemoDocumentation

GitHub stars Docker pull

Preview

Preview

Features

SHA is built on top of GSVT Stack, which stands for Go、SQLite、Vue 3、Tailwind CSS

  • 🪄 Full-stack starter with GSVT Stack
  • ⚓️ Self-hosted with Dockerfile on the fly
  • 💾 Store your data using the SQLite database
  • 🖖 Choosing your familiar Front-end Tech Stack, default is Vue 3
  • 🚄 Deploy your app easily on the Railway / Render

Deploy Services

⚓️ Deploy with Docker

docker run --name sha --publish 3399:8080 --volume ~/.getsha/:/var/opt/sha -e mode=prod getsha/sha:0.1.0

SHA should now be running at http://localhost:3399.

🚄 Deploy on Railway

Deploy on Railway

☁️ Deploy to Render

Deploy to Render

Tech Stack

Back-end

  • Go
  • Air
  • SQLite

Front-end

Generate by vue3-starter

  • Vue 3
  • Vite
  • WindiCSS

Prerequisites

  • Go (1.16 or later)
  • Air (1.27.10 or later). This is for backend live reload.
  • pnpm

Setup

  1. Install Air.

  2. Pull source.

    npx degit xiaoluoboding/self-hosted-app-starter my-self-hosted-app
  3. Start backend using air (with live reload).

    pnpm run dev:be
    or
    air -c backend/scripts/.air.toml

    Change the open file limit if you encounter "error: too many open files".

    ulimit -n 10240
  4. Start frontend (with live reload).

    pnpm run dev:fe
    or
    cd frontend && pnpm i && pnpm run dev

The app should now be running at https://localhost:3000 and change either frontend or backend code would trigger live reload.

Inspired by

Bytebase

License

MIT @xiaoluoboding

self-hosted-app-starter's People

Contributors

xiaoluoboding avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.