GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ainemehdi6/events-management-api: A Symfony-based API for event management, providing secure endpoints for event operations, user authentication, and registration management.

BranchesTags
Open more actions menu

Latest commit

 

History

21 Commits
21 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
.idea
.idea
 
 
Database
Database
 
 
bin
bin
 
 
config
config
 
 
doc
doc
 
 
migrations
migrations
 
 
public
public
 
 
src
src
 
 
templates
templates
 
 
tests
tests
 
 
.env
.env
 
 
.env.dev
.env.dev
 
 
.env.test
.env.test
 
 
.gitignore
.gitignore
 
 
.php-cs-fixer.dist.php
.php-cs-fixer.dist.php
 
 
Dockerfile
Dockerfile
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
TP_Event_Manager.md
TP_Event_Manager.md
 
 
composer.json
composer.json
 
 
composer.lock
composer.lock
 
 
docker-compose.yml
docker-compose.yml
 
 
grumphp.yml
grumphp.yml
 
 
nginx.conf
nginx.conf
 
 
phpstan.dist.neon
phpstan.dist.neon
 
 
phpunit.xml.dist
phpunit.xml.dist
 
 
symfony.lock
symfony.lock
 
 

Repository files navigation

Event Manager API

Overview

A Symfony-based API for event management, providing secure endpoints for event operations, user authentication, and registration management.

Features

  • šŸ” JWT Authentication
  • šŸ”„ Token refresh mechanism
  • šŸ“ Event CRUD operations
  • šŸ‘„ User management
  • šŸ“Š Event registration handling
  • šŸ›”ļø Role-based access control
  • šŸ“š OpenAPI documentation

Tech Stack

  • PHP 8.2
  • Symfony 7.0
  • MySQL 8.0
  • Doctrine ORM
  • JWT Authentication
  • OpenAPI/Swagger
  • Docker

Prerequisites

  • Docker and Docker Compose

Installation

  1. Clone the repository
git clone https://github.com/ainemehdi6/events-management-api
cd events-management-api
  1. Configure environment variables Create a .env.dev file:
DATABASE_URL="mysql://root:root@db:3306/event_manager?serverVersion=8.0"
JWT_SECRET_KEY=%kernel.project_dir%/config/jwt/private.pem
JWT_PUBLIC_KEY=%kernel.project_dir%/config/jwt/public.pem
JWT_PASSPHRASE=your_passphrase
  1. Build and Up containers
docker compose build --no-cache

docker compose up -d
  1. Enter the php container
make exec
  1. Install dependencies
composer install
  1. Generate JWT keys
php bin/console lexik:jwt:generate-keypair
  1. Run migrations
php bin/console doctrine:migrations:migrate

Project Structure

src/
ā”œā”€ā”€ Controller/     # API endpoints
ā”œā”€ā”€ Entity/         # Database entities
ā”œā”€ā”€ Repository/     # Database queries
ā”œā”€ā”€ Service/        # Business logic
ā”œā”€ā”€ DTO/            # Data transfer objects
└── Transformer/    # Data transformers

API Documentation

Access the OpenAPI documentation at http://localhost:8080

Available Commands

  • php bin/console doctrine:migrations:migrate - Run database migrations
  • php bin/console doctrine:migrations:diff - Generate migration
  • php bin/console cache:clear - Clear cache
  • php bin/console debug:router - List all routes

Testing

php bin/phpunit

About

A Symfony-based API for event management, providing secure endpoints for event operations, user authentication, and registration management.

Resources

Readme
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Ɨ600. No cookies required.