Giter VIP home page Giter VIP logo

shuttle-saas-example's Introduction

Shuttle SaaS Example

Introduction

This repo is meant to serve as a SaaS template with a Next.js Typescript frontend and a Rust backend. The design of the template internally is based on a sales-oriented Customer Relationship Management (CRM) tool where users will be able to view their customers, sales records as well as some analytics.

Features

  • Take subscription payments with Stripe
  • Email session-based login
  • Mailgun (email subscription, welcome email etc)
  • Pre-configured frontend routes for easy transition
  • Examples of how to implement simple dashboard analytics

Pre-requisites

Instructions for Usage

  • Fork or clone the repo, then navigate to the folder where you cloned the repo:
  git clone https://github.com/joshua-mo-143/shuttle-saas-example.git
  cd shuttle-saas-example
  • Run npm i to install the dependencies on the frontend.

  • Set your secrets in the Secrets.toml file at the Cargo.toml level of your backend folder (any that are unset will default to "None" to stop the web service from automatically crashing but some services may not work!)

  • Run npm run dev and go to http://localhost:8000 once the app has built and you should see the following:

Main page for Next.js + Shuttle Saas Template

Troubleshooting

  • If you change the migrations after running locally or deploying, you will need to go into the database itself and delete the tables. You can do this easily with something like psql or pgAdmin.

  • If connecting to external services like Stripe doesn't work, try checking your Secrets.toml file.

  • Shuttle connects by default to port 8000 - if you're currently already using something at port 8000, you can add the --port <port-number> to the cargo shuttle run command to change this.

shuttle-saas-example's People

Contributors

joshua-mo-143 avatar gugagongadze 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.