- Langage : TypeScript
- Framework : NestJS
- Base de données : PostgreSQL
- ORM : TypeORM
- Conteneurisation : Docker + Docker Compose
- Architecture : Architecture modulaire
git clone https://github.com/bradlab/robassime-api.git
cd robassime-apinpm installyarn installCrée un fichier .env à la racine du projet en t’inspirant du fichier .env.example :
# Exemple de configuration
DATABASE_HOST=localhost
DATABASE_PORT=5432
DATABASE_USERNAME=postgres
DATABASE_PASSWORD=postgres
DATABASE_NAME=robassime
PORT=3000npm run start:devyarn start:devL’API sera accessible par défaut sur http://localhost:3000
docker-compose up --buildCela démarre :
- L’API NestJS
- La base de données PostgreSQL
docker-compose down├── .gitignore # Fichiers à ignorer par Git
├── .husky/ # Hooks Git (ex. : pre-commit)
├── .github/
│ └── workflows/ # Fichiers de configuration GitHub Actions (CI/CD)
├── commitlint.config.cjs # Configuration pour le lint des messages de commit
├── docker-compose.yml # Configuration multi-conteneurs Docker (API + DB)
├── Dockerfile # Image Docker de l'application
├── jest.config.json # Configuration de Jest (tests unitaires)
├── nest-cli.json # Configuration spécifique à NestJS CLI
├── package.json # Dépendances NPM et scripts de projet
├── releaserc.json # Configuration de Semantic Release
├── tsconfig.json # Configuration du compilateur TypeScript
├── yarn.lock # Verrouillage des versions Yarn
└── src/ # Code source
└───util
| Commande | npm | yarn |
|---|---|---|
| Start the project | npm run start |
yarn start |
| Development mode | npm run start:dev |
yarn start:dev |
| Compiler | npm run build |
yarn build |
| Lint | npm run lint |
yarn lint |
| Tests unitaires | npm run test |
yarn test |
| Tests en mode watch | npm run test:watch |
yarn test:watch |
| Typescript check | npx tsc |
|
| Husky Hooks | npm run init:hooks |
yarn init:hooks |
npm run testyarn testnpm run typeorm migration:create -- -n migratinName
# ou
yarn typeorm migration:create -n migratinNamenpm run typeorm migration:run
# ou
yarn typeorm migration:runnpm run typeorm migration:revert
# ou
yarn typeorm migration:revertFor any questions or contributions :
- Author : bradlab
- Email :
matbradiouf@gmail.com - GitHub : https://github.com/bradlab
This project is licensed under the MIT license. See the LICENSE file for more information.