Skip to content

Commit

Permalink
env var to docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
cankurttekin committed Nov 5, 2024
1 parent 66061d1 commit 2a0f65f
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 22 deletions.
8 changes: 4 additions & 4 deletions backend/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ services:
- "443:443"
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://db:5432/job_app_tracker
SPRING_DATASOURCE_USERNAME: admin
SPRING_DATASOURCE_PASSWORD: password
SPRING_DATASOURCE_USERNAME: ${DB_USER}
SPRING_DATASOURCE_PASSWORD: ${DB_PASS}
SPRING_JPA_HIBERNATE_DDL_AUTO: update
KEY_STORE_ALIAS: ${KEY_STORE_ALIAS}
KEY_STORE_PASS: ${KEY_STORE_PASS}
Expand All @@ -23,8 +23,8 @@ services:
image: postgres:14
environment:
POSTGRES_DB: job_app_tracker
POSTGRES_USER: admin
POSTGRES_PASSWORD: password
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASS}
ports:
- "5432:5432"
volumes:
Expand Down
10 changes: 6 additions & 4 deletions frontend/src/components/AITools.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ const AITools = () => {
setSelectedJobApplication(response.data[0]); // Set the first job application as selected
}
} catch (error) {
console.error("Error fetching job applications:", error);
//console.error("Error fetching job applications:", error);
console.error("Error fetching job applications:");
}
};

Expand Down Expand Up @@ -135,12 +136,13 @@ const AITools = () => {
headers: { Authorization: `Bearer ${token}` }
});

console.log("Interview Response Data:", response.data);
//console.log("Interview Response Data:", response.data);

if (Array.isArray(response.data.questions)) {
setInterviewQuestions(response.data.questions);
} else {
console.error("No interview questions found in response:", response.data);
//console.error("No interview questions found in response:", response.data);
console.error("No interview questions found in response:");
setInterviewQuestions([]);
}
} catch (error) {
Expand All @@ -166,7 +168,7 @@ const AITools = () => {
headers: { Authorization: `Bearer ${token}` }
});

console.log("Quiz Response Data:", response.data);
//console.log("Quiz Response Data:", response.data);

if (Array.isArray(response.data)) {
const formattedQuestions = response.data.map((q) => ({
Expand Down
10 changes: 8 additions & 2 deletions frontend/src/components/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import organizeImage from '../assets/organize.png';
import filterImage from '../assets/filter.png';
import starsImage from '../assets/stars.png';
import goalsImage from '../assets/goal.png';
import aiImage from '../assets/ai.png';
import buyMeACoffeeImage from '../assets/buy-me-a-beer.png';
import separator from '../assets/seperator.png';
import separator from '../assets/separator.png';
import { useNavigate } from 'react-router-dom';
import { AuthContext } from '../contexts/AuthContext';
import styled from "styled-components";
Expand Down Expand Up @@ -60,10 +61,15 @@ const Home = () => {
<img src={filterImage} alt="Illustration 3" className="illustration"/>
<p className="illustration-text">{t('illustrations.filter')}</p>
</div>
<div className="illustration-item">
<img src={aiImage} alt="Illustration 4" className="illustration"/>
<p className="illustration-text">{t('illustrations.ai')}</p>
</div>
<div className="illustration-item">
<img src={goalsImage} alt="Illustration 4" className="illustration"/>
<p className="illustration-text">{t('illustrations.goal')}</p>
</div>

</div>

<div className="screenshot-section">
Expand Down Expand Up @@ -99,7 +105,7 @@ const Home = () => {
</div>

<footer className="footer">
<img src={separator} alt="seperator" className="seperator"/>
<img src={separator} alt="separator" className="separator"/>
<p>
{t('footer.description')}
</p>
Expand Down
9 changes: 5 additions & 4 deletions frontend/src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
"buttonText": "Get ATSFS free"
},
"illustrations": {
"job_source": "Add jobs from any source you want",
"comment": "Comment on your applications, star your favorites",
"filter": "Filter and/or sort to view your applications",
"goal": "Land a job (hopefully)"
"job_source": "Add jobs from any source you want(LinkedIn, Indeed, Glassdoor ...)",
"comment": "Leave comments, star your favorites",
"filter": "Search, filter and sort your applications",
"goal": "Land a job (hopefully)",
"ai": "\"AI\" generated personalized interview questions"
},
"support": {
"text": "This service is designed to help people in job hunt without any cost, if you want to support, here is donation button stuff."
Expand Down
9 changes: 5 additions & 4 deletions frontend/src/locales/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
"buttonText": "Ücretsiz kaydolun"
},
"illustrations": {
"job_source": "İstediğiniz kaynaktan işler ekleyin",
"comment": "Başvurularınıza yorum yapın, favorilerinizi yıldızlayın",
"filter": "Başvurularınızı görüntülemek için filtreleyin ve/veya sıralayın",
"goal": "İş bulun (umarım)"
"job_source": "İstediğiniz kaynaktan başvurularınızı ekleyin(LinkedIn, Indeed, Kariyer.net ...)",
"comment": "Notlar ekleyin, favorilerinizi yıldızlayın",
"filter": "Başvurularınızı görüntülemek için filtreleyin ve sıralayın",
"goal": "Kariyer hedeflerinize ulaşın (umarım)",
"ai": "Yapay zeka ile kişiselleştirilmiş mülakat soruları oluşturun"
},
"support": {
"text": "Bu hizmet, iş arayan kişilere ücretsiz olarak yardımcı olmak için tasarlanmıştır, desteklemek isterseniz, işte bağış butonu."
Expand Down
9 changes: 5 additions & 4 deletions frontend/src/styles/Home.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
max-width: 300px;
padding: 10px;
text-align: center;
margin-right: 20px;
}

.right-column {
Expand Down Expand Up @@ -123,26 +124,26 @@
}

.illustration {
width: 40%;
width: 56%;
height: auto;
}

.illustration-text {
margin-top: 10px;
font-size: 1em;
font-weight: bold;
padding: 10px;
}

/* Footer adjustments */
.footer {
margin-top: 20px;
font-size: 0.7em;
font-size: 0.8em;
color: #666;
text-align: center;
padding: 0 10px;
}

.seperator {
.separator {
scale: 0.6;
}

Expand Down

0 comments on commit 2a0f65f

Please sign in to comment.