Originally initiated within Code for Senegal and now actively maintained by Vie Publique Sénégal.
Vie Publique Sénégal is a platform dedicated to providing transparent access to public information in Senegal. This project aims to make government data and public information easily accessible to citizens.
- Official Documents: 10,000+ documents — laws, decrees, reports, Journal officiel — with full-text search
- News & Dossiers: latest public-affairs news and thematic reference pages gathering documents, news and podcasts on a single topic
- National Assembly: deputies, commissions, votes, written questions and parliamentary news
- Council of Ministers: communiqués, appointments and personality profiles
- State Organization: ministries and public entities, constitutional institutions, organizational chart with decree archives and comparison
- Budget: Senegal's budget explained with visualizations
- Elections: electoral dashboard (presidential, legislative, local) with results maps and statistics
- Public Projects: dashboards tracking public programs (PRES, PIP)
- Podcasts: civic podcast episodes
- Stay Informed: newsletter, RSS feeds, push notifications and a mobile app (Android/iOS)
📋 See the CHANGELOG for the main features shipped over time.
The project has built one of the largest civic information communities in Senegal, reaching more than 250,000 followers across its social platforms.
Follow us on our social networks to stay updated:
- LinkedIn - 85K followers
- Facebook - 100K followers
- Instagram - 10k followers
- Twitter/X - 25K followers
📖 Want the full story? Read Behind the scenes of a civic tech — how the platform grew from a prototype shipped in one hour to a robust, self-hosted and sovereign architecture, our DevOps, our AI-assisted development pipeline, our data model, and even our running costs (full transparency). It also shows our traction: from 10,000 visitors one month after launch to ~60,000 unique visitors / month today.
- Nuxt 4 (Vue 3, SSR & SEO) · Nuxt UI · Tailwind CSS · Pinia
- Progressive Web App (PWA / TWA)
- Directus (headless CMS) · PostgreSQL · Redis (cache)
- MinIO (self-hosted object storage)
- Typesense (search engine)
- Hostinger VPS
- Coolify (self-hosted PaaS) · Docker
- GitHub Actions (CI/CD)
- SonarQube (code quality)
- Cloudflare
- Claude Code & GitHub Copilot — AI-assisted development
- n8n workflows
- Mistral AI / OpenAI for document OCR & summarization
- Node.js (v18 or higher)
- npm or yarn
- Docker (for local development)
- Clone the repository:
git clone https://github.com/vie-publique-senegal/vie-publique.sn.git
cd vie-publique.sn- Install dependencies:
npm install
# or
yarn install-
Create a
.envfile based on.env.exampleand fill in the required environment variables. -
Start the development server:
For Linux/macOS:
npm run dev
# or
yarn devFor Windows PowerShell:
npm run dev-win
# or
yarn dev-winnpm run dev- Start development server (Linux/macOS)npm run dev-win- Start development server (Windows PowerShell)npm run build- Build for productionnpm run generate- Generate static projectnpm run preview- Preview production buildnpm run lint- Run ESLintnpm run lint:fix- Fix ESLint issuesnpm run format- Format code with Prettiernpm run test- Run tests with Vitestnpm run test:ui- Run tests with UInpm run test:coverage- Generate test coverage report
The project includes separate scripts for different operating systems to handle PDF worker file copying:
- Linux/macOS: Uses Unix commands (
mkdir -p,cp) - Windows: Uses PowerShell commands (
if not exist,mkdir,copy)
This project uses a strict code style to ensure consistency across the team.
When you open the project in VSCode, you'll be prompted to install recommended extensions. Click "Install All" or install them manually:
- ESLint - JavaScript/TypeScript linting
- Prettier - Code formatting
- Volar - Vue 3 support
- Tailwind CSS IntelliSense - Tailwind autocompletion
- EditorConfig - Universal editor configuration
Once extensions are installed, your code will be automatically formatted on save (Ctrl+S / Cmd+S).
- Quotes: Single quotes
'(not double quotes") - Semicolons: None (disabled)
- Indentation: 2 spaces
- Trailing commas: Always
- Line endings: Auto (LF on Unix, CRLF on Windows)
Always run before creating a commit to ensure code quality:
npm run format && npm run lint:fix.prettierrc- Prettier formatting rules.editorconfig- Universal editor settings.vscode/settings.json- VSCode-specific settingseslint.config.mjs- ESLint rules
For more details on VSCode setup, see .vscode/README.md
This project uses Vitest for unit testing with Vue Test Utils.
# Run tests in watch mode
npm run test
# Run tests with UI
npm run test:ui
# Run tests with coverage
npm run test:coverageTests are organized following Nuxt.js testing best practices in a centralized test/ directory:
test/
├── unit/ # Unit tests for composables, utils, stores
│ └── composables/
│ └── usePromesseStatus.test.ts
├── e2e/ # End-to-end tests (future)
└── nuxt/ # Nuxt runtime tests (future)
Example test:
// test/unit/composables/usePromesseStatus.test.ts
import { describe, it, expect } from 'vitest';
import { getStatusIcon } from '~/composables/usePromesseStatus';
describe('usePromesseStatus', () => {
it('should return correct icon', () => {
expect(getStatusIcon('tenue')).toBe('i-heroicons-check-circle');
});
});Coverage reports are generated in the coverage/ directory and are excluded from version control. The project is configured to send coverage data to SonarCloud for continuous code quality analysis.
This project uses SonarCloud for continuous code quality and security analysis. Code quality metrics are automatically analyzed on every push and pull request.
Vie Publique Sénégal is an open-source civic technology initiative that provides free access to public information in Senegal.
The platform currently serves more than 59,000 monthly active users and provides access to 10,000+ public documents, including laws, official journals, reports and parliamentary documents.
If you find this project useful:
- ⭐ Star the repository — it helps increase visibility
- 💝 Become a sponsor
- 🤝 Contribute code — pull requests are welcome
- 📣 Share the project with others
Financial contributions help us fund:
- infrastructure, hosting and security costs;
- digitization and processing of public documents;
- maintenance of web and mobile applications;
- search, open data and multilingual AI initiatives.
All sponsored improvements directly benefit the open-source project and remain publicly accessible.
Technical documentation lives in docs/ — the master index maps every domain
(architecture, SEO, infra, feature modules…) to its canonical doc.
We welcome contributions! Please feel free to submit a Pull Request.
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.
