Skip to content

About

No description, website, or topics provided.

Resources

Contributing

Stars

3 stars

Watchers

2 watching

Forks

Repository files navigation

🏓 ft_transcendence

A full-stack SPA project that replicates the classic Pong game using a microservice architecture.
Check it out here: https://transcendence.at/sign-in-view


📦 Tech Stack

  • Frontend: TypeScript + Tailwind CSS
  • Backend: Node.js + Fastify + TypeScript + Prisma + Zod
  • Blockchain: Avalanche + Solidity
  • Monitoring: Prometheus + Grafana
  • Security: JWT
  • Database: SQLite
  • Infra: Docker + Docker Compose + Nginx
  • Others: Makefile, Shell scripts

🚀 How to Run

make           # build & start all services
make re        # clean and restart everything
make clean     # stop containers
make remove    # full cleanup (images, cache, volumes)
make dev       # dev mode (no cache)
make nuke      # cleanup (images, volumes, but keeps cache)
make cli       # build & start all services AND use cli makefile to run it

⚙️ Configuration

Important

Before running the project, make sure the following files exist:

  • ☁️ Environment variables

    • .env file located in ./.env (decrypted automatically via ft_crypt.sh).
  • 🔐 Secrets

    • monitoring/secrets/grafana_admin_password.txt
    • monitoring/secrets/slack_webhook.txt
    • ssg/pong-api/.env (can be decrypted via ft_crypt.sh)
  • Other

    • hosts file modified by adding following lines: 127.0.1.1 ft_transcendence20

🌐 URLs

Service URL
Frontend SPA https://localhost:8080
User API http://localhost:3000/api
Game Service ws://localhost:5000/ws
Swagger USERS (dev) http://localhost:3000/api/documentation
Health-check USERS http://localhost:3000/api/health-check

🧩 Dependencies

  • Node version xxx
  • Docker compose version xxx
  • Docker version xxx
  • Make version xxx
  • Packages located in root and in microservices's package.json file.
  • ft_crypt.sh script to decrypt the sensitive files.

📚 Notes

Paste here a short info/list of service's notes. E.g:

  • Uses Zod for validation.
  • Uses Prisma Client for database management.
  • Follows route -> controller → service → schema pattern.

🔗 Links to services' readme files

🔗 Links to other README files

About

No description, website, or topics provided.

Resources

Contributing

Stars

3 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages