Skip to content

wilmost/qr-code-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

01bc6cb · Mar 1, 2025

History

70 Commits
Jan 21, 2025
Feb 8, 2025
Jan 28, 2025
Mar 1, 2025
Feb 19, 2025
Feb 19, 2025

Repository files navigation

Qr-code-generator

This is the sample application for the DevOps Capstone Project. It generates QR Codes for the provided URL, the front-end is in NextJS and the API is written in Python using FastAPI.

Architecture

Front-End

A web application where users can submit URLs.

Backend

API that receives URLs and generates QR codes. The API stores the QR codes in cloud storage(AWS S3 Bucket).

Technical Stack

Project structure

Deployment

Infraestructure

Kubernetes Deployment

Running locally

API

The API code exists in the api directory. You can run the API server locally:

  • Clone this repo
  • Make sure you are in the api directory
  • Create a virtualenv by typing in the following command: python -m venv .venv
  • Install the required packages: pip install -r requirements.txt
  • Create a .env file, and add you AWS Access and Secret key, check .env.example
  • Also, change the BUCKET_NAME to your S3 bucket name in main.py
  • Run the API server: uvicorn main:app --reload
  • Your API Server should be running on port http://localhost:8000

Front-end

The front-end code exits in the front-end-nextjs directory. You can run the front-end server locally:

  • Clone this repo
  • Make sure you are in the front-end-nextjs directory
  • Install the dependencies: npm install
  • Run the NextJS Server: npm run dev
  • Your Front-end Server should be running on http://localhost:3000

Goal

The goal is to get hands-on with DevOps practices like Containerization, CICD and monitoring.

Look at the capstone project for more detials.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published