Skip to content

Commit

Permalink
chore: changed project name
Browse files Browse the repository at this point in the history
  • Loading branch information
yp969803 committed Apr 16, 2024
1 parent 26978d8 commit d78525c
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 13 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Activity-leaderboard Backend
# Tracer

### Activity Leader Board is a open source project which can be used to monitor progress in an Organization .
### Tracer is a open source project which can be used to monitor progress in an Organization/Team .



Expand All @@ -17,5 +17,3 @@
**Caching**: Redis


### Activity-leaderboard Frontend
[frontend](https://github.com/mdgspace/activity-leaderboard.git)
26 changes: 26 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,32 @@ networks:
driver: bridge

services:
localstack:
image: localstack/localstack:1.0.4
networks:
- network
environment:
- SERVICES=s3:4566
- HOSTNAME=localstack
- HOSTNAME_EXTERNAL=localstack
- DEFAULT_REGION=us-east-1

aws-cli:
image: amazon/aws-cli
restart: on-failure
networks:
- network
depends_on:
- localstack
environment:
- AWS_ACCESS_KEY_ID=test
- AWS_SECRET_ACCESS_KEY=test
- AWS_DEFAULT_REGION=us-east-1
entrypoint: /bin/sh -c
command: >
"
aws --endpoint-url=http://localstack:4566 s3api create-bucket --bucket bucket --region us-east-1
"
backend:
build:
context: .
Expand Down
4 changes: 4 additions & 0 deletions env.list.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
CLIENT_ID=
BACKEND_URL=http://localhost:8080
AVATAR_API=


# Postgres configurations
POSTGRES_HOST=
Expand Down
6 changes: 6 additions & 0 deletions env.sh.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#!/bin/bash


# Frontend configuration
export CLIENT_ID=
export BACKEND_URL=http://localhost:8080
export AVATAR_API=

# Postgres configurations
export POSTGRES_HOST=
export POSTGRES_USER=
Expand Down
5 changes: 3 additions & 2 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
content=" Track your progress, healthy competition in organization others, and
unleash your GitHub potential"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
Expand All @@ -30,7 +31,7 @@
/>


<title>Activity Leaderboard</title>
<title>Tracer</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
9 changes: 6 additions & 3 deletions src/features/AddWorkspace/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,14 @@ const AddWorkspace = () => {
description: description,
});

try {

if (selectedFile != null) {
const fileRes = uploadIcon(token, name, selectedFile);
try{
const fileRes = await uploadIcon(token, name, selectedFile);
}catch (e){
}
}
} catch (e) {}

if (members.length > 0) {
try {
const addMmebersRes = await addOrgMembers(token, name, members);
Expand Down
10 changes: 7 additions & 3 deletions src/features/EditWorkspace/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,15 @@ const EditWorkspace = () => {
description: description,
});

try {

if (selectedFile != null) {
const fileRes = uploadIcon(token, name, selectedFile);
try{
const fileRes = await uploadIcon(token, name, selectedFile);
}catch(e){

}
}
} catch (e) {}


navigate('/');
};
Expand Down
2 changes: 1 addition & 1 deletion src/features/login/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const Login = () => {
<img src={heroImg} alt='' />
</div>
<div className='hero_content'>
<h1>ACTIVITY LEADERBOARD</h1>
<h1>Tracer</h1>
<h3>
Track your progress, healthy competition in organization others, and
unleash your GitHub potential"
Expand Down

0 comments on commit d78525c

Please sign in to comment.