This project was generated using Angular CLI version 19.2.12.
[ ] Put project on Github [ ] Build login page [ ] Build model for login page
To start a local development server, run:
ng serveOnce the server is running, open your browser and navigate to http://localhost:4200/. The application will automatically reload whenever you modify any of the source files.
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
ng generate component component-nameFor a complete list of available schematics (such as components, directives, or pipes), run:
ng generate --helpTo build the project run:
ng buildThis will compile your project and store the build artifacts in the dist/ directory. By default, the production build optimizes your application for performance and speed.
To execute unit tests with the Karma test runner, use the following command:
ng testFor end-to-end (e2e) testing, run:
ng e2eAngular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
For more information on using the Angular CLI, including detailed command references, visit the Angular CLI Overview and Command Reference page.
Interface utilisateur de la solution de gestion de facture
- Node.js v22.17.1
- npm 11.5.2
- Angular CLI 19.2.12
- Angular Framework 19.2.0
- TypeScript 5.7.2
- API REST (back-plateformK)
Serveur
- OS : Linux (Ubuntu/Debian/CentOS) ou Windows Server
- Réseau : Accès SSH (Linux) ou RDP (Windows)
- Ports ouverts : 80, 443 (HTTPS), 4200 (développement)
Mettre à jour le serveur :
sudo apt update && sudo apt upgrade -yInstallation de Node.js et npm :
# Via NodeSource repository (recommandé)
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt-get install -y nodejs
# Vérifier les versions
node --version
npm --versionInstallation d'Angular CLI :
# Installation globale d'Angular CLI
sudo npm install -g @angular/cli@19.2.12
# Vérifier la version
ng versionInstallation de Git :
sudo apt install git -y
git --versionWarning
Si vous utilisez Docker, seule l'installation de Docker et Git est nécessaire. Node.js et Angular CLI ne sont pas requis, car ils sont déjà gérés dans l'image.
sudo apt-get install docker.io -ygit clone https://github.com/AnaelTech/front-plateformK
cd front-plateformKTip
Les fichiers de configuration se trouvent dans src/environments/.
export const environment = {
production: false,
apiUrl: 'http://localhost:8080/api',
appName: 'PlateformK Dev'
};export const environment = {
production: true,
apiUrl: 'https://api.votre-domaine.com/api',
appName: 'PlateformK'
};# Installer les dépendances du projet
npm install
# ou avec cache nettoyé
npm ci# Serveur de développement
ng serve
# Serveur de développement avec rechargement automatique
ng serve --open
# Build de développement
ng build# Build optimisé pour la production
ng build --configuration production
# Build avec optimisations avancées
ng build --prod --aot --build-optimizer
# Vérifier les fichiers générés
ls -la dist/# Tests unitaires
ng test
# Tests unitaires en mode CI
ng test --watch=false --browsers=ChromeHeadless
# Tests end-to-end
ng e2e
# Linting du code
ng lint# Mode développement
ng serve --port 4200
# Mode développement avec host spécifique
ng serve --host 0.0.0.0 --port 4200
# Servir les fichiers buildés (nécessite un serveur web)
npx http-server dist/front-plateformk -p 8080# Build optimisé pour la production
ng build --configuration production
# Vérifier les fichiers générés
ls -la dist/front-plateformk/- Développement : http://localhost:4200
# Build stage
FROM node:20-alpine as build
WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production
COPY . .
RUN ng build --configuration production
# Production stage
FROM nginx:alpine
COPY --from=build /app/dist/front-plateformk /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]version: '3.8'
services:
frontend:
build: .
ports:
- "80:80"
environment:
- NODE_ENV=production
backend:
image: back-plateformk:latest
ports:
- "4200:4200"# Avec Dockerfile
docker build -t front-plateformk .
docker run -d -p 80:80 front-plateformk
# Avec Docker Compose
docker-compose up -dLes contributions sont les bienvenues ! N'hésitez pas à :
- Fork le projet
- Créer une branche pour votre fonctionnalité (
git checkout -b feature/nouvelle-fonctionnalite) - Commit vos changements (
git commit -am 'Ajouter nouvelle fonctionnalité') - Push vers la branche (
git push origin feature/nouvelle-fonctionnalite) - Ouvrir une Pull Request
Ce projet est sous licence MIT.
Généré avec le script GitHub Repository Creator