Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@casejs/case
Advanced tools
Readme
A complete backend without leaving your IDE
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.
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
}
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')
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.
Thanks to our first wonderful contributors !
FAQs
Backend as a service for developers.
The npm package @casejs/case receives a total of 93 weekly downloads. As such, @casejs/case popularity was classified as not popular.
We found that @casejs/case demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.