Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jintrocaso/cosmicjs-landing-page
An example of a simple marketing landing page to collect data for leads in exchange for files.
https://github.com/jintrocaso/cosmicjs-landing-page
angular cosmic-js headless-cms marketing
Last synced: 9 days ago
JSON representation
An example of a simple marketing landing page to collect data for leads in exchange for files.
- Host: GitHub
- URL: https://github.com/jintrocaso/cosmicjs-landing-page
- Owner: JIntrocaso
- Created: 2020-09-05T02:28:31.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-09-29T00:59:37.000Z (over 4 years ago)
- Last Synced: 2024-11-05T12:39:46.711Z (about 2 months ago)
- Topics: angular, cosmic-js, headless-cms, marketing
- Language: TypeScript
- Homepage:
- Size: 354 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Marketing Landing Page with Cosmic JS
This application is a simple landing page that allows an organization to build a mailing list of users and in exchange deliver some content to the user via a download.
The application owner sets up a campaign in Cosmic JS which feeds details in the application. When a user visits the sight they will receive information about the campaign and
be presented with a form to sign up for the offered content. The user's information is saved in a Cosmic JS object and attached to the campaign object. Once the information is submitted, the offered content stored in Cosmic is
downloaded to the user's machine.## Cosmic JS Setup
[![Powered by Cosmic](https://web-assets.cosmicjs.com/images/powered-by-cosmic.svg)](https://app.cosmicjs.com/add-bucket?import_bucket=5f52a4e110dbb60008716d5f)
More information to come.
## Application Configuration
Locally, the application requires a .env file holding the environment variables needed for the application to communicate with the Cosmic JS api. When moving to deployment, the application will pull the values from the server's environment variables and create an environment file for the application so it will have access to these values. The list of what variables are needed are the following:
* COSMIC_BUCKET=\
* COSMIC_READ_KEY=\
* COSMIC_WRITE_KEY=\
* COSMIC_API_URL=https://api.cosmicjs.com/v1/
* COSMIC_CAMPAIGN_NAME=\