glific/glific-frontend
Tentang
Frontend for the Glific platform
Pengembangan web dan aplikasiPertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- 0
- dalam 15 hari
- 0
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliGlific - 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
Jelajahi proyek terkait
Memuatβ¦