LogoKikoMart Docs

Database & Storage

Create the database and the image storage bucket.

Create the database#

  1. In the Console sidebar, go to Databases.
  2. Click + Create Database and choose TablesDB.
  3. Set Database Name to kiko_mart_db.
  4. Click Create Database and note down the Database ID.

You don't need to create tables, columns or indexes by hand. They are created automatically by the seeding script when you connect the Store App.

Create the storage bucket#

Product, store and profile images are stored in a bucket called images.

  1. In the Console sidebar, click Storage, then + Create Bucket.

  2. Set Name to images.

  3. Open Bucket Settings → Security and add these permissions:

    RoleCreateReadUpdateDelete
    All users✓✓✓
    Any✓
  4. Click Update to save the permissions.

If the Any → Read permission is missing, images won't load in the apps and requests return 401 Unauthorized.