Cedrickchee Saas Starter Save

Everything you need to get your next Unicorn-For-X startup off the ground.

Project README

SaaS Starter

Project Status

The project has not been updated for a very long time (aside from security fixes) for the latest in React 16+, Hooks, Apollo 3 and Prisma 2.

A message from the author

Maintaining an open source database requires an immense amount of time and energy, even more so due to JS growing pains like dependency "hell", non-backward compatible dependency upgrade or frequently breaking changes introduced by third-party libraries.

Unfortunately I no longer have the time or energy to continue this work.

If you are interested in building better websites or looking for a simple and better (maintainable) starter kit, I suggest that you look at the Remix framework which will soon going open source and check out Kent Dodds's post, "How I built a modern website using Remix in 2021".

~ @cedric_chee

demo: coming soon

SaaS Starter is an open source full stack software-as-a-service online mart complete with real credit checkout. Users can search, sell, add to cart and checkout their favourite grocery items.

This is a full stack JavaScript application built with React.js, GraphQL, Node.js and friends.

The Tech Stack

(WIP) New tech stack -- back-end will be updated to use Keystone headless CMS. Keystone uses Prisma under the hood to take care of the database layer).

Application Architecture

The following is the design of the frontend and backend of the application.

The application has five main models:

  • Users
  • Items
  • Orders
  • CartItems
  • OrderItems

all of which are relational and utilizing the power of relational GraphQL Queries.

The app also includes many server side bits including:

  • JWT authentication
  • permissions
  • sending email
  • uploading images
  • charging credit cards

Development

Developer skills required to build an online mart with React, GraphQL and some of today's top JavaScript technology.

React.js and Modern JavaScript

You should be already familiar with the basics of React - components, state, props, modules and event handlers.

You should be comfortable with both writing and debugging modern JavaScript including arrow functions, classes, promises, async+await and other commonly used parts of ES6.

The backend of the app is written in Node.js. Prior Node.js knowledge is nice, but not required.

The app requires knowledge of GraphQL, Apollo Client, Prisma, databases, or testing React components.

What is GraphQL?

Just as React has transformed the way we build web applications, GraphQL is changing how we build APIs to query and mutate data.

GraphQL is a type-safe query language for APIs and a runtime for fulfilling those queries with your existing data.

What?! It's a replacement for (or addition to) your REST API and Ajax Calls.

GraphQL requires buy-in from both your client and your server — it then puts the power of requesting only what you want into the client and the business logic of finding and filtering that data into backend resolvers.

It enables libraries that make caching, loading, error handling and pagination a breeze.

Complex Relational Data queries and server-side mutations like signing up or checking-out are a snap with GraphQL.

GraphQL is just a standard and can be implemented in any language or framework.

Concepts

The concepts implemented into our entire full-stack application along with general JavaScript best practices:

Documentation

See the docs directory.

License

This repository contains a variety of content; some developed by Cedric Chee, and some from third-parties. The third-party content is distributed under the license provided by those parties.

I am providing code and resources in this repository to you under an open source license. Because this is my personal repository, the license you receive to my code and resources is from me and not my employer.

The content developed by Cedric Chee is distributed under the following license:

Code

The code in this repository, including all code samples in the notebooks listed above, is released under the MIT license. Read more at the Open Source Initiative.

Text

The text content of the book is released under the CC-BY-NC-ND license. Read more at Creative Commons.

Open Source Agenda is not affiliated with "Cedrickchee Saas Starter" Project. README Source: cedrickchee/saas-starter
Stars
58
Open Issues
7
Last Commit
1 year ago

Open Source Agenda Badge

Open Source Agenda Rating