Skip to content

Commit 3620011

Browse files
author
Anmol Gangwar
committed
chore(data): 🔖 Added v1 dataset 1500 exercises.json
bodyparts.json equipment.json muscles.json
1 parent 3c9a1f1 commit 3620011

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+25527
-1276
lines changed

bun.lockb

-20.3 KB
Binary file not shown.

src/app.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,12 @@ import { prettyJSON } from 'hono/pretty-json'
55
import { Home } from './pages/home'
66
import { Routes } from '#common/types'
77
import type { HTTPException } from 'hono/http-exception'
8-
import { DalService } from './infra/mongodb/dal.service'
98
import { cors } from 'hono/cors'
109
import { authMiddleware } from './middleware/auth'
1110
export class App {
1211
private app: OpenAPIHono
13-
private dalService: DalService
1412
constructor(routes: Routes[]) {
1513
this.app = new OpenAPIHono()
16-
this.dalService = DalService.getInstance()
1714
this.initializeApp(routes)
1815
}
1916
private async initializeApp(routes: Routes[]) {
@@ -40,7 +37,6 @@ export class App {
4037
private initializeGlobalMiddleware() {
4138
this.app.use(async (c, next) => {
4239
try {
43-
await this.dalService.connectDB()
4440
await next()
4541
} catch (error) {
4642
console.error('Database connection error:', error)
@@ -52,7 +48,7 @@ export class App {
5248
this.app.use(
5349
cors({
5450
origin: '*',
55-
allowMethods: ['GET', 'POST', 'OPTIONS']
51+
allowMethods: ['GET', 'OPTIONS']
5652
})
5753
)
5854

src/data/bodyparts.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
[
2+
{
3+
"name": "neck"
4+
},
5+
{
6+
"name": "lower arms"
7+
},
8+
{
9+
"name": "shoulders"
10+
},
11+
{
12+
"name": "cardio"
13+
},
14+
{
15+
"name": "upper arms"
16+
},
17+
{
18+
"name": "chest"
19+
},
20+
{
21+
"name": "lower legs"
22+
},
23+
{
24+
"name": "back"
25+
},
26+
{
27+
"name": "upper legs"
28+
},
29+
{
30+
"name": "waist"
31+
}
32+
]

src/data/equipments.json

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
[
2+
{
3+
"name": "stepmill machine"
4+
},
5+
{
6+
"name": "elliptical machine"
7+
},
8+
{
9+
"name": "trap bar"
10+
},
11+
{
12+
"name": "tire"
13+
},
14+
{
15+
"name": "stationary bike"
16+
},
17+
{
18+
"name": "wheel roller"
19+
},
20+
{
21+
"name": "smith machine"
22+
},
23+
{
24+
"name": "hammer"
25+
},
26+
{
27+
"name": "skierg machine"
28+
},
29+
{
30+
"name": "roller"
31+
},
32+
{
33+
"name": "resistance band"
34+
},
35+
{
36+
"name": "bosu ball"
37+
},
38+
{
39+
"name": "weighted"
40+
},
41+
{
42+
"name": "olympic barbell"
43+
},
44+
{
45+
"name": "kettlebell"
46+
},
47+
{
48+
"name": "upper body ergometer"
49+
},
50+
{
51+
"name": "sled machine"
52+
},
53+
{
54+
"name": "ez barbell"
55+
},
56+
{
57+
"name": "dumbbell"
58+
},
59+
{
60+
"name": "rope"
61+
},
62+
{
63+
"name": "barbell"
64+
},
65+
{
66+
"name": "band"
67+
},
68+
{
69+
"name": "stability ball"
70+
},
71+
{
72+
"name": "medicine ball"
73+
},
74+
{
75+
"name": "assisted"
76+
},
77+
{
78+
"name": "leverage machine"
79+
},
80+
{
81+
"name": "cable"
82+
},
83+
{
84+
"name": "body weight"
85+
}
86+
]

0 commit comments

Comments
 (0)