A backend API powered by Strapi, designed to manage and serve content within the Cherita infrastructure. It provides structured data storage, API endpoints, and authentication for applications consuming data.
To install dependencies, run:
npm installThen, copy .env.example to .env and update the environment variables accordingly.
To start the Strapi application in development mode (with auto-reload enabled):
npm run developThis will launch the Strapi admin panel and expose API endpoints.
To start the Strapi application in production mode:
npm run startEnsure that the .env file is properly configured before running in production.
To build the Strapi admin panel for deployment:
npm run buildThis command compiles the admin UI for production use.
The Cherita Strapi App is deployed using Google Cloud App Engine. The following GitHub Actions handle deployments:
- Production Deployment: deploy
- Development Deployment: deploy-dev
The application requires several environment variables for configuration. Ensure these are set in your .env file:
APP_KEYS="your-app-keys"
API_TOKEN_SALT="your-api-token-salt"
ADMIN_JWT_SECRET="your-admin-jwt-secret"
JWT_SECRET="your-jwt-secret"
TRANSFER_TOKEN_SALT="your-transfer-token-salt"
SENDGRID_API_KEY="your-sendgrid-api-key"
GCS_BUCKET_NAME="your-gcp-bucket-name"
GCS_BASE_PATH="your-gcp-base-path"
GCS_BASE_URL="https://storage.googleapis.com/your-gcp-bucket-name"
GCS_PUBLIC_FILES=true
GCS_UNIFORM=false
GCS_SERVICE_ACCOUNT="your-gcp-service-acocunt-json"