Skip to content

Commit

Permalink
chore: Initialize v0 MVP
Browse files Browse the repository at this point in the history
  • Loading branch information
malicktech committed May 5, 2024
1 parent f7411c3 commit 6c2d17f
Show file tree
Hide file tree
Showing 97 changed files with 29,312 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Nuxt dev/build outputs
.output
.data
.nuxt
.nitro
.cache
dist

# Node dependencies
node_modules

# Logs
logs
*.log

# Misc
.DS_Store
.fleet
.idea

# Local env files
.env
.env.*
!.env.example
27 changes: 27 additions & 0 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# https://markus.oberlehner.net/blog/running-nuxt-3-in-a-docker-container/

ARG NODE_VERSION=21

FROM node:${NODE_VERSION}-slim as base

ENV NODE_ENV=development

WORKDIR /src

# Build
FROM base as build

# COPY --link package.json package-lock.json .
COPY ./package*.json .

# Utiliser uniquement si nécessaire
RUN npm config set strict-ssl false

RUN npm install

# Run
FROM base

COPY --from=build /src/node_modules /src/node_modules

CMD [ "npm", "run", "dev" ]
157 changes: 157 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
# Nuxt 3 Minimal Starter

Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.

## Stack

- [Vue 3](https://vuejs.org)

- [Nuxt 3](https://nuxt.com)
- [Nuxt UI](https://ui.nuxt.com) pour les composants UI
- [Nuxt SEO](https://nuxtseo.com) pour optimiser le référencement naturel
- [Nuxt Content](https://content.nuxt.com/) pour gérer du contenu dynamique en markdown
- [nuxt-gtag](https://nuxt.com/modules/gtag) pour le suivi Google Analytics

- [Tailwind css](https://tailwindcss.com/) comme framework css

* Nom de domaine
- DNS vie-publique.sn acheté via OVH

* Hébergement
- projet déployé chez [Vercel](https://vercel.com)

## Prerequisites

- Node.js > v18.0.0

## structure du projet

```graphql
nuxt-senegal-reports/
├── assets/ # Ressources non compilées comme les styles et les images
├── components/ # Composants Vue réutilisables
├── layouts/ # Modèles de mise en page pour ton application
├── pages/ # Les pages de ton application basées sur les routes
├── plugins/ # Plugins JavaScript que tu souhaites exécuter avant l'instance root Vue
├── static/ # Fichiers statiques servis directement depuis la racine
└── store/ # État global (Vuex Store)
```

## Creation

Project was created with this command

```bash
pnpm dlx nuxi@latest init nuxt-senegal-reports
```

nexui was added with following command

```bash
pnpm dlx nuxi@latest module add ui
```
others module

```bash
pnpm dlx nuxi@latest module add content
pnpm dlx nuxi@latest module add sitemap
pnpm dlx nuxi@latest module add seo

```

## Setup

Make sure to install the dependencies:

```bash

# npm
cd nuxt-senegal-reports
npm install

# pnpm
pnpm install

# yarn
yarn install

# bun
bun install
```

## Development Server

Start the development server on `http://localhost:3000`:

```bash
# npm
npm run dev

# pnpm
pnpm run dev

# yarn
yarn dev

# bun
bun run dev
```

## Environnement variable .env file

tu peux créer un fichier .env à la racine de ton projet et y définir la variable d'environnement pour l'ID de Google Analytics ou le dns

exemple:
```
GTAG_ID=G-XXXXXX
NUXT_PUBLIC_SITE_URL=https://www.vie-publique.sn
SHOW_PINNED_PEOLPLES=false
```

non obligatoire en environnement de développement

## Development Server with Docker

Start the development server on `http://localhost:3000`:

```bash
docker-compose up
docker compose -f docker-compose.dev.yml up --build

```

## Production

Build the application for production:

```bash
# npm
npm run build

# pnpm
pnpm run build

# yarn
yarn build

# bun
bun run build
```

Locally preview production build:

```bash
# npm
npm run preview

# pnpm
pnpm run preview

# yarn
yarn preview

# bun
bun run preview
```

Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
18 changes: 18 additions & 0 deletions app.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
export default defineAppConfig({
ui: {
primary: 'slate',
gray: 'cool',
container: {
padding: 'px-3 sm:px-6 lg:px-8',
},
card: {
header: {
padding: 'px-2 py-3 sm:py-4 sm:px-6',
},
body: {
padding: 'px-2 py-3 sm:py-4 sm:p-6',
},
}
}
})

45 changes: 45 additions & 0 deletions app.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<script setup lang="ts">
const route = useRoute()
const links = [
{
label: 'Rapports publics',
// icon: 'i-heroicons-document-chart-bar',
to: '/',
},
{
label: 'Personnes épinglées',
// icon: 'i-heroicons-user',
to: '/individuals-cited',
},
{
label: 'Scandales financiers',
// icon: 'i-heroicons-newspaper',
to: '/financial-scandals',
}
]
</script>

<template>
<UContainer class="mt-2 px-0 sm:px-10 md:px-20 lg:px-40">

<HeaderBrand />
<UDivider />

<UHorizontalNavigation :links="links"
class="border-b border-gray-200 dark:border-gray-800 mx-auto mb-3 sticky top-0 z-50 justify-center">
<template #default="{ link }">
<span class="group-hover:text-primary relative">{{ link.label }}</span>
</template>
</UHorizontalNavigation>

<NuxtLoadingIndicator />

<NuxtLayout>
<NuxtPage />
</NuxtLayout>

<Footer />

</UContainer>
</template>
15 changes: 15 additions & 0 deletions assets/css/app.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
body, nav {
background-color: #f5f5f7;
}

.custom-shadow,
.custom-shadow input,
.custom-shadow button,
.custom-shadow select {
box-shadow: 0 2px 4px #0000001a;
border-radius: 0px;
}

.organisme-logo {
width: 60px;
}
30 changes: 30 additions & 0 deletions assets/data/dossiers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[
{
"id": 1,
"dysfonctionnement": "Marché irrégulier de rénovation au COUD ( conflits d'intérêts, surfacturation , marché fictif) octroyé à BARA FALL, ACP du COUD",
"montant_prejudice": "23.781.956 F Cfa",
"personnes_incriminees": "Bara FALL, ACP du COUD",
"preuves_obtenues": "PV d'audition de Bara Fall ACP\n Les PV de dépouillement PV de réception\n simulacre de mise en concurrence"
},
{
"id": 2,
"dysfonctionnement": "Course Hippique",
"montant_prejudice": "20.000.000 F Cfa",
"personnes_incriminees": "Cheikh oumar ANNE, Directeur;",
"preuves_obtenues": "Décision accordant les subventions\n Factures non conformes\n PV d'audition"
},
{
"id": 3,
"dysfonctionnement": "Ndogou CLAUDEL",
"montant_prejudice": "15 000 000 F Cfa",
"personnes_incriminees": "Cheikh SALL, chef des opérations financières, Serigne A DIOMBOKHO, chef service du budget\n Marcelline SYLLA, ACP du COUD",
"preuves_obtenues": "Absence de pièces comptables et de justificatifs"
},
{
"id": 4,
"dysfonctionnement": "Soldes bancaires et trésor: un solde débiteur non justifié dans la balance des écritures comptables ",
"montant_prejudice": "10.000.000 F Cfa",
"personnes_incriminees": "Bara FALL ACP du COUD",
"preuves_obtenues": "Lettre de réserves sur le procès verbal de passation de service du 26 février 2015 entre Mme Marcelline SYLLA/comptable entrant et Mr. Bara FALL/comptable sortant"
}
]
Loading

0 comments on commit 6c2d17f

Please sign in to comment.