Skip to content

LaunchLabAfrica/dam

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DAM

A hosted solution for your digital assets management needs

Deployment

Free deployments with now with custom domains.

[Update with one-click deploy]

Features

  • Web-first
  • Responsive design
  • Lightweight CMS
  • Asset optimization
  • Downloadable as .jpg, .png, .svg, and .pdf
  • Shareable link

Contributing

Install

npm install

Note: Add contentful keys in config.js

Run

npm run dev

visit http://localhost:3000

Contentful

Contentful's Delivery API powers this app. To use your own data, setup a space in contentful. Here's a short guide to understand how contentful works.

Content Structure

Once you have contenful figured out. You can setup up a content type to look like so:

{
  "name": "Asset",
  "description": "",
  "displayField": "name",
  "fields": [
    {
      "name": "Title",
      "id": "name",
      "type": "Symbol",
      "validations": [],
      "localized": false,
      "required": false,
      "disabled": false,
      "omitted": false
    },
    {
      "name": "Description",
      "id": "description",
      "type": "Text",
      "localized": false,
      "required": false,
      "disabled": false,
      "omitted": false,
      "validations": []
    },
    {
      "name": "Files",
      "id": "files",
      "type": "Array",
      "items": {
        "type": "Link",
        "linkType": "Asset"
      }
    }
  ]
}

The app fetches all Assets within the space and serves them on this route /file/:fileName.

Visit /pages/file.js to get a better sense of what's going on.

License

MIT

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%