Cosmic JS is a powerful CMS API that allows you to manage content for your websites and applications faster and easier. But did you know that you can also use Cosmic JS to deploy code to your website (in any language) from any GitHub repository? In addition to deploying content and code, starting today you can also add unlimited domains to your deployed application. This is revolutionary because it means that moving forward all you need to launch your website is a git repository, a domain name provider and Cosmic JS! No more hosting server necessary! I’ve added a couple of screencasts for your viewing. Let’s get started.
Let's go ahead and install an app, but you could just as easily skip this step and deploy your own application pointed to your Cosmic JS bucket. After installing your app, you will be prompted to deploy the application.
Deploy the App
Next click "Deploy Web App" to launch the web application to http://[your-bucket-slug].cosmicapp.co. Once you do this it will take about a minute for the application to deploy on a custom instance of the Cosmic JS app server. While this is working its magic, let's add our custom domains…
Add Custom Domains
The Cosmic app server subdomain is great for development and staging, but when you go live, you're going to want to add our own custom domains. Cosmic JS makes this incredibly easy by providing the option to add custom domains to your deployed application. Here are the 4 easy steps:
1. Go to Settings > Deploy Web App > Add Custom Domains (upgrade your account if needed)
2. Add your custom domains
3. Click "Set Domains"
4. Go to your domain name registrar's website and point your A Name Records to the Cosmic JS app server located at 220.127.116.11
Now navigate to your domain and notice that you now have your application hosted at your custom domain! Add as many domains / subdomains as you need! Whenever you need to deploy changes to the app, just push the changes up to your GitHub repository and click "Redeploy Web App".
Cosmic JS now gives you the power to deploy a website faster and more nimbly than any other system. And all you need is a git repository, a domain name provider and Cosmic JS!
The golden triangle of project success or failure rests on the three angles of A) Speed B) Quality C) Cost. When it comes to interactive agencies, they may be promising (at best) two of the three triangle points, but how likely are they to fulfill that promise?
You can now use Cosmic JS to deploy your GitHub private repos to the web. All you have to do is sign up or sign in using your GitHub account and authorize access to your private repos. (Don't worry, we only access your private repos when you are ready to deploy them to the web).
After you authorize access the process is super easy. Just go to Your Bucket > Settings > Deploy Web App and choose which private (or public) GitHub repo you would like to deploy. You can also deploy an app from any public Git repo url (make sure your app follows the Heroku deployment guidelines).
Click Deploy Web App and your private repo will be deployed to the world!
You can have up to 5 Free Buckets at any given time each with a 14-day trial. During this trial, you have free access to all Bucket Add-ons including Webhooks, Localization, Revision History and more.
At any point during of your 14-day trial you can upgrade your Bucket, use the Free Bucket Referral Program to extend your Free Bucket free trial time, or earn a Free Bucket forever by contributing to the Cosmic JS community.
Refer a friend to signup and get 14 more days of trial time which can be applied to any of your Free Buckets. There is no limit to the number of referrals you can use to get extended trial time.
Overage rate: $80 per additional 100,000 API requests per month.
If you go over your plan's API request limit for the month, Cosmic JS support will reach out to inform you. At the point of contact you will have the choice to either upgrade your Bucket to the next higher plan or pay the overage charges at the end of the calendar month.
API Requests Add-on Available: $54.90 per additional 100,000 API requests per month.
API Requests Add-on
You can add additional API Requests to any Bucket for $54.90 per month per additional 100,000 API requests.
Run the following code, one line at a time, in your preferred command line tool.
Go to the Cosmic CLI NPM page for more info.
Finding your AWS credentials
Follow these steps to get your AWS access keys:
Create or login to your Amazon Web Services Account and go to the Identity & Access Management (IAM) page.
Click on Users and then Add user. Enter a name in the first field to remind you this User is from Cosmic, like cosmic-admin.
Enable Programmatic access by clicking the checkbox. Click Next to go through to the Permissions page. Click on Attach existing policies directly.
Search for and select AdministratorAccess then click Next: Review. Check everything looks good and click Create user.
View and copy the API Key & Secret to a temporary place. You'll need it for all of your Cosmic Function deploys.