Skip to content

MichaelEight/WUDA

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WUDA - Mini Applications Setup

This repository contains two main applications: the back-end (server) and the front-end (user interface). This guide explains how to set up and run them locally.


🖥️ Back-End Setup

  1. Install dependencies:
cd back-end pip install -r requirements.txt
  1. Create .env file in backend dir with given values:
# PostgreSQL database name POSTGRES_DB=your_database_name # PostgreSQL user POSTGRES_USER=your_database_user # PostgreSQL password POSTGRES_PASSWORD=your_database_password # Optional: PostgreSQL host (default is localhost) POSTGRES_HOST=localhost # Optional: PostgreSQL port (default is 5432) PORT=5432 # Secret key for JWT JWT_KEY=your_secret_jwt_key 
  1. In order to run app use command
python3 app.py

🌐 Front-End Setup

  1. Install dependencies:

    cd front-end pip install -r requirements.txt 
  2. Create .env file

# Hostname of the back-end server (default: localhost) BACKEND_HOSTNAME=localhost # Port of the back-end server (default: 5000) BACKEND_PORT=5000 # Secret key for front-end application SECRET_KEY=your_secret_key_here # Port where the front-end server will run (default: 8000) SERVER_PORT=8000
  1. Run app by following command:
python3 app.py

Database setup

Required is postgresql. Either run given docker-compose.yaml file or provide setup for backend's .env file

services: postgres: image: postgres environment: POSTGRES_PASSWORD: alamakota POSTGRES_USER: board_games POSTGRES_DB: games ports: - 5432:5432

For students.

In tasks directory there are clear instructions for each task that you should do in order to pass the course. Recommended order:

  1. CICD
  2. Kubernetes
  3. Monitoring

For MacOS

  • There is a permission problem when connecting to Docker to test pipeline (using act), so AI recommended using:
DOCKER_HOST=unix:///Users/michaeleight/.docker/run/docker.sock act -j backend
DOCKER_HOST=unix:///Users/michaeleight/.docker/run/docker.sock act -j frontend

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Python 55.5%
  • HTML 23.9%
  • CSS 15.8%
  • JavaScript 3.5%
  • Dockerfile 1.3%