glific/glific-frontend
À propos
Frontend for the Glific platform
Développement web et applicatifProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalGlific - Two Way Open Source Communication Platform
Glific is a two-way communication platform built for nonprofits. This is the frontend interface built using React.
📋 Table of Contents
- Pre-requisite
- Clone Frontend Repo
- Installation
- Available Scripts
- Docker Image for Production
- Localization
- Deploying Release on ECS with CD
- Learn More
Pre-requisite
Software Dependencies
npm (via asdf)
asdf plugin-add nodejs
asdf install
yarn (via npm)
npm install --global yarn
Clone Frontend Repo
Git commands to clone
git clone [email protected]:glific/glific-frontend.git
Glific Backend
You need to set up the backend service for Glific. Follow the instructions here:
🔗 https://github.com/glific/glific
💡 Note: SSL is required in development for both frontend and backend. Follow the SSL setup instructions in the backend README.
Also, add the following entry to your /etc/hosts file:
127.0.0.1 glific.test
Installation
Copy
.env.exampleto.envin the project root:cp .env.example .envDo not modify
.envunless absolutely required.Install dependencies:
yarn setup
Start backend server
Ensure your Glific backend server is running and accessible.
Start frontend server
yarn dev
Visit https://glific.test:3000 to open the app.
Login credentials
Phone: 917834811114
Password: Secret1234!
Configure Gupshup settings (Optional)
After logging in:
This step is required only if you're using Gupshup integration and have ISV credentials stored in the database.
- Go to Settings → Integration.
- Enter your Gupshup credentials and App Name.
- Save the settings to auto-fetch your Gupshup App ID.
💡 Note: Auto-fetching the App ID will only work if valid ISV credentials are already present in the backend database.
Available Scripts
yarn setup # Install dependencies
yarn dev # Run app in development mode
yarn test # Run tests in watch mode
yarn test:coverage # Run tests with coverage
yarn build # Create optimized production build
yarn extract-translations # Extract English strings for Lokalise
Docker Image for Production
To build a production Docker image:
docker build \
--build-arg VITE_GLIFIC_API_PORT=API-PORT \
--no-cache -t glific-frontend .
Replace API-PORT with your backend API port number.
Localization
Extract base strings:
yarn extract-translationsOnce merged into
main, strings will appear in Lokalise.Use
Download → Build onlyin Lokalise to push translations.This will create a PR automatically in the frontend repo.
It's recommended to Preview before building.
Deploying Release on ECS with CD
- For AWS CodeBuild, use
buildspec.yml.sampleas your config file. - For Docker Hub and alternatives, use this GitHub Action:
🔗 https://github.com/marketplace/actions/build-and-push-docker-images
Learn More
- 🌐 Glific.org
- 📄 One Pager
- 📁 Google Drive
- 📝 Product Features
- 📰 Blogs
Chat With Us
- 💬 Discord
Explorer des projets similaires
Chargement…