3.0.5 • Published 2 years ago

@casejs/case v3.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

What is CASE ?

CASE is a Typescript lightweight BaaS (Backend As A Service) requiring minimal coding.

It provides a complete backend to your client app without the hassle that comes with it.

Key features

  • ⚔ Instant backend with DB, REST API and Admin panel without any configuration
  • 🧠 Smart SDK to import in your favorite JS front-end
  • šŸ› ļø Essential features like Auth, Storage, Validation and Hooks

Forget about drag-and-drop visual builders

With CASE, you structure your data using TypeScript classes straight from your coding environment.

// entities/cat.entity.ts
@Entity()
export class Cat extends BaseEntity {
  @Prop()
  name: string

  @Prop({
    type: PropType.Date
  })
  birthDate: Date

  @Prop({
    type: PropType.Relation,
    options: {
      entity: Owner
    }
  })
  owner: Owner
}

Effortless integration in your client app

And allow the following code in your JS client built with your favorite stack: React, Svelte, Angular, Vue or any front-end. You can even use it in NodeJS.

import CaseClient from '@casejs/case-client'

// Init SDK
const cs = new CaseClient()

// Get all cats with their owner
const cats = await cs.from('cats').with(['owner']).find()

// Filter cats.
const cats = await cs
  .from('cats')
  .where('breed = siamese')
  .andWhere('birthDate > 2020-01-01')
  .find()

// Create a new cat.
const newCat = await cs.from('cats').create({
  name: 'Milo',
  age: 2
})

// Upload.
const fileUrl: string = await cs.from('cats').addFile(file)

// Login.
await cs.login('users', 'user1@case.app', 'case')

Getting started

Prerequisites

  • NodeJS (v16.14.0 or higher). The recommended version is 18.x.

Create your CASE project

Run the following on your terminal replacing my-case-app with your app's name:

npx create-case-app my-case-app

Then serve the app locally:

cd my-case-app
npm start

šŸŽ‰ Your backend is ready ! You can now: - See your Admin panel at http://localhost:4000 - Use your REST API at http://localhost:4000/api

You can now go through the docs to build your next block.

Community & Resources

  • Docs - Learn CASE features
  • Discord - Come chat with the CASE community
  • Dev.to - Stay tuned to CASE developments
  • Github - Report bugs and share ideas to improve the product.

Contributors

Thanks to our first wonderful contributors !

3.0.4

2 years ago

3.0.3

2 years ago

3.0.5

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

3.0.0-beta.1

2 years ago

3.0.0-beta.3

2 years ago

3.0.0-beta.2

2 years ago

2.1.2

2 years ago

2.0.15

2 years ago

2.1.1

2 years ago

2.0.16

2 years ago

2.1.4

2 years ago

2.0.13

2 years ago

2.1.3

2 years ago

2.0.14

2 years ago

2.0.11

2 years ago

2.0.12

2 years ago

2.1.0

2 years ago

3.0.0-beta

2 years ago

2.0.19

2 years ago

2.0.17

2 years ago

2.0.18

2 years ago

2.0.20-beta.3

2 years ago

2.0.20-beta.4

2 years ago

2.0.20-beta.1

2 years ago

2.0.20-beta.2

2 years ago

2.0.20

2 years ago

2.0.20-beta.5

2 years ago

2.0.21

2 years ago

2.0.20-beta.6

2 years ago

2.0.20-beta.0

2 years ago

2.0.10

2 years ago

2.0.9

2 years ago

2.0.8

2 years ago

2.0.7

2 years ago

2.0.6

2 years ago

2.0.5

2 years ago

2.0.4

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago