Skip to content

Commit

Permalink
DELETE still in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
tabitapetruneac committed Sep 9, 2024
2 parents be91c20 + c9dd262 commit a77907a
Show file tree
Hide file tree
Showing 13 changed files with 675 additions and 580 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ name: unit tests
on:
push:
paths:
- api/tests/**
- .github/workflows/unit_test.yml
- api/**
- .github/workflows/unit-tests.yml
branches:
- main
pull_request:
paths:
- api/tests/**
- .github/workflows/unit_test.yml
- api/**
- .github/workflows/unit-tests.yml
branches:
- main
workflow_dispatch: null
Expand All @@ -28,15 +28,15 @@ jobs:
- name: set up go
uses: actions/setup-go@v5
with:
go-version: 1.22.0
go-version: 1.23.0
- name: verify go installation
run: go version
- name: install dependencies
run: go mod tidy
working-directory: ./api/tests
working-directory: ./api
- name: run unit tests
run: go test -v ./tests/...
working-directory: ./api/tests
- name: verify go installation
run: go version
run: go test -v main.go main_test.go #./...
working-directory: ./api
- name: cache go modules
uses: actions/cache@v4
with:
Expand Down
35 changes: 17 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# CV Management System API

## Overview : _This project provides a platform for managing user data and generating custom CV templates._
## Overview : This project provides a platform for managing user data and generating custom CV templates.

![Description](https://venngage-wordpress.s3.amazonaws.com/uploads/2021/11/section-3-resume-banner-1-1.png)

<a href="Link URL">
<img src="https://venngage-wordpress.s3.amazonaws.com/uploads/2021/11/section-3-resume-banner-1-1.png" alt="Alt Text" />
</a>

```sh
CV_project
Expand Down Expand Up @@ -39,22 +37,23 @@ CV_project
└── __init__.py # Initialization and configuration
```

## Components:
## Components

```plaintext
Backend (Go) : Handles user data management, authentication, and PDF generation.
Frontend (Python,Flask) : Provides the web interface for user interaction.
Database (SQL) : Stores user information.
## Prerequisites:
## Prerequisites
- `Go `: _Backend development_
- `Flask `: _Frontend development_
- `MySQL database `: _Storing user data and templates_
- `wkhtmltopdf `: _PDF generation_
- `Git `: _Version control_
- `Docker & Docker Compose `: _Containerized deployment_
- `Go`: _Backend development_
- `Flask`: _Frontend development_
- `MySQL database`: _Storing user data and templates_
- `wkhtmltopdf`: _PDF generation_
- `Git`: _Version control_
- `Docker & Docker Compose`: _Containerized deployment_
## Install Basic Tools:
## Install Basic Tools
```sh
sudo apt update && sudo apt upgrade && sudo apt install -y git curl build-essential golang-go python3 python3-pip wkhtmltopdf docker.io docker-compose selinux-utils curl mysql-server
Expand Down Expand Up @@ -162,12 +161,12 @@ docker-compose rm # removes stopped service containers

## Browser links

https://miro.com/app/board/uXjVK6HA_1A=/
<https://miro.com/app/board/uXjVK6HA_1A=/>

http://127.0.0.1:5000/template1
<http://127.0.0.1:5000/template1>

http://127.0.0.1:5000/template2
<http://127.0.0.1:5000/template2>

http://127.0.0.1:5000/template3
<http://127.0.0.1:5000/template3>

##
---
4 changes: 2 additions & 2 deletions api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM golang:1.22-alpine AS builder

ENV DB_HOST db
ENV DB_PORT 3306
ENV MYSQL_HOST cv_db-container
ENV MYSQL_PORT 3306

WORKDIR /app

Expand Down
Loading

0 comments on commit a77907a

Please sign in to comment.