Skip to content

A minimal platform agnostic dockerized backend template for SaaS using Prisma, TS and docker

Notifications You must be signed in to change notification settings

lancedw/the-saas-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

The SaaS Backend Template

A minimal platform agnostic dockerized backend template for SaaS using Prisma, TS and docker

Getting Started

Prerequisites

  • Node.js 18.x
  • Docker

Installation

  1. Clone the repository
  2. Install dependencies
  3. Create a .env file in the root directory copied from .env.example. Set the correct SLASH env variable for your operating system.
  4. Spin up the database and server
    npm run dup
    
    [MacOS] if the server container fails to start due to permissions, run the following command:
    chmod +x ./start.sh
    
  5. Seed the database with some data
    npm install -g dotenv-cli
    npm run prisma:seed
    
  6. Start writing code!

Deployment

Docker

  1. Build the docker image
    npm run docker:build
  2. Run the docker compose
    npm run docker:compose

AWS

TBD (WIP)

About

A minimal platform agnostic dockerized backend template for SaaS using Prisma, TS and docker

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published