Skip to content

haniffalab/strapi-api

Repository files navigation

deploy deploy-dev

Cherita Strapi API

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.

Installation

To install dependencies, run:

npm install

Then, copy .env.example to .env and update the environment variables accordingly.

Development

To start the Strapi application in development mode (with auto-reload enabled):

npm run develop

This will launch the Strapi admin panel and expose API endpoints.

Production

To start the Strapi application in production mode:

npm run start

Ensure that the .env file is properly configured before running in production.

Building the Admin Panel

To build the Strapi admin panel for deployment:

npm run build

This command compiles the admin UI for production use.

Deployment

The Cherita Strapi App is deployed using Google Cloud App Engine. The following GitHub Actions handle deployments:

Environment Variables

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"

About

A backend API powered by Strapi, designed to manage and serve content within the Cherita infrastructure

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •