This is the Frontity project that is powering the site https://wpengine.frontity.org.
Both WordPress and Frontity are running in WP Engine:
- WordPress is running in the WP Engine managed hosting service.
- Frontity is running in Atlas, the new Headless WordPress platform of WP Engine.
If you want to run Frontity in Atlas, follow this steps:
First, install the Atlas CLI.
npm i @wpengine/headless-cli -g
Docs: https://developers.wpengine.com/docs/headless/guides
The next step is to login to your WP Engine account:
wpe alpha auth login
And then connect with GitHub
wpe alpha auth login github
In order to work with headless apps, we need to set our account context. Your account name can be found in the WP Engine User Portal in the top left of the navigation bar. To set the account context, run:
wpe alpha context set account YOUR_ACCOUNT_NAME
Create a wpe.json
file in the root of your project.
For example, this is the one we used for this project:
{
"name": "frontity-in-atlas",
"repo": "frontity/frontity-in-atlas",
"region": "US-C",
"environments": [
{
"name": "Production",
"branch": "master",
"wp_environment_name": "frontity-in-atlas"
}
]
}
Atlas needs two npm scripts:
wpe-build
: To build the app.start
: To run the app.
Add them to your package.json
:
"scripts": {
"dev": "frontity dev",
"build": "frontity build",
"start": "frontity serve --port 8080",
"wpe-build": "frontity build"
},
ℹ️ If you want to run Frontity in Embedded mode, add a
--public-path
option to the build script with the URL of your Atlas deployment.
Finally, create the application using:
wpe alpha apps create -f wpe.json
That's it. The app will be deployed.
From now on, a new build will be generated each time you push code to your repository.
Docs: https://developers.wpengine.com/docs/headless/guides/getting-started/deploy-app/cli#deploy-your-app
We have different channels at your disposal where you can find information about the project, discuss about it and get involved:
- 📖 Docs: this is the place to learn how to build amazing sites with Frontity.
- 👨👩👧👦 Community: use our forum to ask any questions, feedback and meet great people. This is your place too to share what are you building with Frontity!
- 🐞 GitHub: we use GitHub for bugs and pull requests. Questions are answered in the community forum!
- 🗣 Social media: a more informal place to interact with Frontity users, reach out to us on Twitter.
- 💌 Newsletter: do you want to receive the latest framework updates and news? Subscribe here
Got questions or feedback about Frontity? We'd love to hear from you. Use our community forum yo ! ❤️
Frontity also welcomes contributions. There are many ways to support the project! If you don't know where to start, this guide might help → How to contribute?