Welcome to your new project created with Contember AI Studio! If you need assistance, feel free to join the conversation in our GitHub Discussions.
Before you begin, ensure you have:
Your project consists of the following packages:
- Location:
./admin - Description: A React SPA that serves as the administration UI, built with Contember DataBinding for seamless integration with the Contember API.
- Sentry: Sentry is integrated into the project. To enable Sentry, set the
VITE_SENTRY_DSNenvironment variable in the.env.productionfile.
- Location:
./api - Description: Defines the data model and permissions for the Contember API.
- Location:
./client - Description: A type-safe GraphQL client for interacting with the Contember API, complete with generated types.
- Documentation: Client Documentation
- Location:
./worker - Description: A serverless function deployed to Cloudflare Workers for executing server-side operations.
- Documentation: Worker Documentation
Follow these steps to set up and run your project locally:
-
Install Dependencies
Run the following command to install all required dependencies:
yarn install
-
Start the Project
Start the admin application and all necessary services with:
yarn run start
This will launch the following components:
| Container | Port | Url |
|---|---|---|
| Contember Engine | 1481 | http://localhost:1481 |
| Postgres | 1482 | http://localhost:1482 |
| S3 | 1483 | http://localhost:1483 |
| MailPit | 1484 | http://localhost:1484 |
| Adminer | 1485 | http://localhost:1485 |
| S3 Dashboard | 1486 | http://localhost:1486 |
When you're done, stop the Docker containers with:
docker compose downCongratulations, your project is now running locally! Access the administration UI at http://localhost:1480.
Enjoy building with Contember!
To update the headless UI components, run the following command:
yarn run ui:updateThis will update lib folder in the @app/admin package with the latest headless UI components. If you have made any
changes to the components, make sure to commit them before running this command.