Simple mock express.js api
Unfortunately at the moment application requires npm install --legacy-peer-deps
to install. Craco doesn't match with the latest CRA 5.0.0 at the moment.
BE: npm run start:be
FE: npm run start:fe
BE runs on port 4000
FE runs on port 8080
FE configuration includes craco config to proxy /api
requests to BE.
Url: /api/frameworks
Schema:
{
[key: string]: {
"description": string
"id": string,
"imageUrl": string,
"stars": number,
"github": string,
"active": boolean
}
}
Url: /api/frameworks/:framework_name
Schema:
{
"description": string
"id": string,
"imageUrl": string,
"stars": number,
"github": string,
"active": boolean,
"languages": {
"language": string,
"id": string,
"imageUrl": string,
"frameworks": string[]
}[]
}
Url: /api/languages
{
[key: string]: {
"language": string,
"id": string,
"imageUrl": string,
"frameworks": string[]
}
}
Url: /api/languages/:language_name
{
"language": string,
"id": string,
"imageUrl": string,
"frameworks": string[]
}