|
1 |
| -# Agency Template, powered by Blocks |
| 1 | +# CosmicJS Agency Website |
2 | 2 |
|
3 |
| - |
| 3 | +The **CosmicJS Agency Website** template helps you create a dynamic and visually appealing online presence with customizable websites to showcase your services and portfolio. |
4 | 4 |
|
5 |
| -### UPDATED |
| 5 | +This repository is an example of the new GitHub repository created during the deployment. For a more detailed step-by-step to deploy this template through Azion's platform, check the [How to deploy edge applications with CosmicJS Agency Website |
| 6 | +](https://www.azion.com/en/documentation/products/guides/cosmic-agency-website/) guide. |
6 | 7 |
|
7 |
| -🛒 Now includes product management and checkout using Stripe. |
| 8 | +This template uses Next version `14.2.5`. |
8 | 9 |
|
9 |
| -A website template built using Cosmic's React components, [Blocks](https://blocks.cosmicjs.com). Use this template to get familiar with Blocks and how they can be used to build common content-powered features for your websites and apps, or simply use it as a starting point for your next project. Save development time and learn content modeling best practices. |
| 10 | +--- |
10 | 11 |
|
11 |
| -## Links |
| 12 | +## Requirements |
12 | 13 |
|
13 |
| -[Install this template](https://www.cosmicjs.com/marketplace/templates/agency) |
| 14 | +Before using this template, you need to: |
14 | 15 |
|
15 |
| -## Features |
| 16 | +- Have a [GitHub account](https://github.com/signup). |
| 17 | + - Every push will be deployed automatically to the main branch in this repository to keep your project updated. |
| 18 | +- A [Cosmic CMS](https://www.cosmicjs.com/) account. |
| 19 | +- A [Stripe](https://stripe.com/en-br) account. |
16 | 20 |
|
17 |
| -🛒 Product management and checkout using Stripe |
| 21 | +> **Note**: this template uses [Application Accelerator](https://www.azion.com/en/documentation/products/build/edge-application/application-accelerator/), [Edge Functions](https://www.azion.com/en/documentation/products/build/edge-application/edge-functions/), and [Edge Cache](https://www.azion.com/en/documentation/products/build/edge-application/edge-cache/) and it could generate usage-related costs. Check the [pricing page](https://www.azion.com/en/pricing/) for more information. |
18 | 22 |
|
19 |
| -⚡️ Performance optimized |
| 23 | +Fill in the fields presented on the configuration form and deploy the template. This will create a new edge application with its configurations, which you can edit and manage later. It also creates a repository in your GitHub account, based on the template, allowing you to maintain control over the project. |
20 | 24 |
|
21 |
| -👁 Draft preview ready |
| 25 | +--- |
22 | 26 |
|
23 |
| -📱 Mobile responsive |
| 27 | +## Deploy your own |
24 | 28 |
|
25 |
| -🌎 Localization ready |
| 29 | +Deploy your own CosmicJS Agency Website project with Azion. |
26 | 30 |
|
27 |
| -🌓 Dark mode ready |
| 31 | +[](https://console.azion.com/create/cosmic/cosmic-agency-website "Deploy with Azion") |
28 | 32 |
|
29 |
| -🔧 Customizable |
30 |
| - |
31 |
| -♿️ Accessible |
32 |
| - |
33 |
| -🦺 Type safe |
34 |
| - |
35 |
| - |
36 |
| - |
37 |
| - |
38 |
| -## Getting started |
39 |
| - |
40 |
| -1. [Install this template in Cosmic](https://www.cosmicjs.com/marketplace/templates/agency). |
41 |
| - |
42 |
| -2. Download this code repository and install the dependencies. |
43 |
| - |
44 |
| -```bash |
45 |
| -git clone https://github.com/cosmicjs/agency-template |
46 |
| -cd agency-template |
47 |
| -bun install |
48 |
| -``` |
49 |
| - |
50 |
| -3. Create a `.env.local` file with your Cosmic API keys. Find these after logging in to the Cosmic dashboard in [Project > API keys](https://app.cosmicjs.com/?redirect_to=?highlight=api-keys). |
51 |
| - |
52 |
| -``` |
53 |
| -cp .env.example .env.local |
54 |
| -``` |
55 |
| - |
56 |
| -It will look like this: |
57 |
| - |
58 |
| -``` |
59 |
| -# .env.local |
60 |
| -AGENCY_COSMIC_BUCKET_SLUG=change_to_your_bucket_slug |
61 |
| -AGENCY_COSMIC_READ_KEY=change_to_your_bucket_read_key |
62 |
| -AGENCY_COSMIC_WRITE_KEY=change_to_your_bucket_write_key |
63 |
| -AGENCY_STRIPE_PUBLISHABLE_KEY=change_to_your_stripe_public_key |
64 |
| -AGENCY_STRIPE_SECRET_KEY=change_to_your_AGENCY_STRIPE_SECRET_KEY |
65 |
| -``` |
66 |
| - |
67 |
| -4. Run the template. |
68 |
| - |
69 |
| -``` |
70 |
| -bun dev |
71 |
| -``` |
72 |
| - |
73 |
| -Open [http://localhost:3000](http://localhost:3000). |
| 33 | +For a more detailed step-by-step, check the [documentation](https://www.azion.com/en/documentation/products/guides/cosmic-agency-website/). |
0 commit comments