3.0.5 ā€¢ Published 5 months ago

@casejs/case v3.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months 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

5 months ago

3.0.3

5 months ago

3.0.5

5 months ago

3.0.2

5 months ago

3.0.1

5 months ago

3.0.0

5 months ago

3.0.0-beta.1

6 months ago

3.0.0-beta.3

6 months ago

3.0.0-beta.2

6 months ago

2.1.2

7 months ago

2.0.15

11 months ago

2.1.1

8 months ago

2.0.16

11 months ago

2.1.4

7 months ago

2.0.13

11 months ago

2.1.3

7 months ago

2.0.14

11 months ago

2.0.11

11 months ago

2.0.12

11 months ago

2.1.0

9 months ago

3.0.0-beta

6 months ago

2.0.19

11 months ago

2.0.17

11 months ago

2.0.18

11 months ago

2.0.20-beta.3

10 months ago

2.0.20-beta.4

10 months ago

2.0.20-beta.1

10 months ago

2.0.20-beta.2

10 months ago

2.0.20

10 months ago

2.0.20-beta.5

10 months ago

2.0.21

9 months ago

2.0.20-beta.6

10 months ago

2.0.20-beta.0

10 months ago

2.0.10

11 months ago

2.0.9

11 months ago

2.0.8

11 months ago

2.0.7

11 months ago

2.0.6

11 months ago

2.0.5

11 months ago

2.0.4

11 months ago

2.0.3

11 months ago

2.0.2

11 months ago

2.0.1

11 months ago

2.0.0

11 months ago