Skip to content

Latest commit

 

History

History
54 lines (39 loc) · 1.2 KB

README.md

File metadata and controls

54 lines (39 loc) · 1.2 KB

Contentful Secret Field App

This project provides a custom field app for Contentful to handle ramdom string values of fixed length (like a secret).

Installation

  1. Clone the repo.
  2. Install dependencies:
    npm install
  3. Start the development server:
    npm run start

Usage

• Deploy or host this app in your Contentful environment. • Configure it as a field extension where you need a random secret value.

Creating a Contentful App

Follow these steps to create and configure your Contentful app from the terminal:

  1. Create a new app definition:

    npm run create-app-definition
  2. Build the app:

    npm run build
  3. Upload the app:

    npm run upload
  4. Use the app in your content model:

    • Edit your content model and add a new field.
    • Set the field type to Short Text.
    • Under Appearance, select your custom app.
    • Ensure the field is set to required.
    • Set the limit character count options (min and max) to the same number as the secret length option of the app.

Contributing

Feel free to open issues or submit pull requests!

License

MIT License