This is a Next.js project bootstrapped with create-next-app
.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
- Setup database
- Create database
- add database ID to env
- create collection named 'workspaces'
- add workspaces ID to env
- Create attributes
- string - name - 256 - required
- string- userId - 50 - string required
- Setup Permissions
- go to workspaces settings
- add Users and tick all method
- Setup Storage
- go to storage
- Create Bucket with name
images
- Add ID to env
- go to images setting
- maximum file size 1 Megabytes
- allowed file: jpg png svg jpeg
- permisions -> USERS (ALL)
- Setup workspace attribute
- Create attribute
- string - imageUrl - 14000000 - not required
- Create collection name 'members'
- userId 50 required
- workspaceId 50 required
- create permissions all for Users
- add member ID to env