Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marcolink/cf-content-types-generator-app
A Contentful App to generate typescript types based on contentful's content types.
https://github.com/marcolink/cf-content-types-generator-app
contentful contentful-app typescript
Last synced: 10 days ago
JSON representation
A Contentful App to generate typescript types based on contentful's content types.
- Host: GitHub
- URL: https://github.com/marcolink/cf-content-types-generator-app
- Owner: marcolink
- License: mit
- Created: 2021-02-16T19:05:51.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-14T19:19:34.000Z (27 days ago)
- Last Synced: 2024-10-15T02:41:33.908Z (26 days ago)
- Topics: contentful, contentful-app, typescript
- Language: TypeScript
- Homepage: https://cf-content-types-generator-app.netlify.app
- Size: 9.78 MB
- Stars: 60
- Watchers: 1
- Forks: 4
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[![Netlify Status](https://api.netlify.com/api/v1/badges/72588f58-5794-440a-a519-705ea7b91770/deploy-status)](https://app.netlify.com/sites/cf-content-types-generator-app/deploys)
[![TypeScript](https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg)](http://www.typescriptlang.org/)# TS Content Types Generator App
> A [Contentful App](https://www.contentful.com/developers/docs/extensibility/app-framework/) to generate typescript types based on contentful's content types. It utilizes the [cf-content-types-generator](https://github.com/contentful-labs/cf-content-types-generator) CLI.
![Screenshot of Typescript types generator inside of the Contentful UI](./screenshot.png)
This project was bootstrapped with [Create Contentful App](https://github.com/contentful/create-contentful-app), and deployed to [https://cf-content-types-generator-app.netlify.app](https://cf-content-types-generator-app.netlify.app/)
## 1 click installation
[![Install to Contentful](https://www.ctfstatic.com/button/install-small.svg)](https://app.contentful.com/deeplink?link=apps&id=2MXG5AIr2DtUvjAAmM7LV3)
## Setup
[The Contentful App Framework](https://www.contentful.com/developers/docs/extensibility/app-framework/) allows developers to extend the Contentful UI with custom functionality. You can install the app and use its hosted version without editing any code.
To install and develop this app head over to your organization settings and create a new app.
![Screenshot of Typescript types generator app setup in the Contentful UI](./docs/app-config-1.png)Define the application name you prefer and the following App URL: `https://cf-content-types-generator-app.netlify.app`.
This app supports the following locations in the Contentful UI:
- (Required) Page (`page`) - use TS Content Types Generator app as a full page app
![Screenshot of Typescript types generator app setup in the Contentful UI](./docs/app-config-2.png)
> Thank you [Stefan Judis](https://github.com/stefanjudis) for letting me steal your [Setup description](https://github.com/stefanjudis/contentful-graphql-playground-app) :star:
## Available Scripts
In the project directory, you can run:
#### `npm start`
Creates or updates your app definition in contentful, and runs the app in development mode. Open your app to view it in
the browser.The page will reload if you make edits. You will also see any lint errors in the console.
#### `npm run build`
Builds the app for production to the `build` folder. It correctly bundles React in production mode and optimizes the
build for the best performance.The build is minified and the filenames include the hashes. Your app is ready to be deployed!
## Libraries to use
To make your app look and feel like Contentful use the following libraries:
- [Forma 36](https://f36.contentful.com/) – Contentful's design system
- [Contentful Field Editors](https://www.contentful.com/developers/docs/extensibility/field-editors/) – Contentful's
field editor React components## Learn More
[Read more](https://www.contentful.com/developers/docs/extensibility/app-framework/create-contentful-app/) and check out
the video on how to use the CLI.Create Contentful App uses [Create React App](https://create-react-app.dev/). You can learn more in
the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started) and how to
further customize your app.