Skip to content

A modern SaaS template built with Fresh for SSR and Danet for the API

License

Notifications You must be signed in to change notification settings

Savory/saaskit-danet

 
 

Repository files navigation

Danet Logo

Description

A Deno SaaSKit fork using Danet framework for the API.

Features

  • Fresh's frontend with No build step
  • Deno's built-in formatter, linter and test runner and TypeScript support.
  • Auto-generated OpenAPI documentation from code
  • Frontend and Business Logic uncoupling
  • Registration/Login with Oauth2 (google, discord), easily add your own provider
  • Registration/Login with email/password
  • Multiple DB providers, choose between KV, MongoDB or InMemory DB simply by modifying an environment variable
  • Business Logic fully unit tested
  • API and all DB Adapters tested via e2e tests
  • Fresh as the web framework and Tailwind CSS as the CSS framework.

To come

  • Subscription/Payment feature
  • CI/CD to deploy back+front on Deno Deploy (when deno_emit bug will be fixed, see issue, or when deno deploy handle emitDecoratorMetadata compiler options)

How to use

API

Being built with Danet, we recommend that you use our CLI to run it with filewatch using danet develop If you don't want to use your CLI, then simply run deno task back:start from root directory or deno task start from back directory.

Pick your favorite DB

This SAASKit handle InMemory, MongoDB and KV as database providers. Simply set DB_PROVIDER=MEMORY or DB_PROVIDER=MONGO or DB_PROVIDER=KV in your .env or environment. No code change required !

MongoDB is the only provider that require a special setup, i.e, having a MongoDB database running either locally (documentation here) or on a remote server/cloud provider, such as MongoDB Atlas which has an awesome free tier.

Learn how to use Danet framework

We provide an extensive documentation that teaches everything needed to use Danet here : https://docs.danet.land/. It is available in English and French, with few pages translated to Portuguese.

FRONT / SSR

Simply run deno task front:start from root directory or deno task start from front directory.

About

A modern SaaS template built with Fresh for SSR and Danet for the API

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%