For now, our store
project has no API when it is deployed. Hence, it is only displaying the header.
- If you removed your
fake-api/index.ts
from thestore
, let's re-add it
-
Import it in your
apps/store/src/app/app.tsx
🐳 Hint
import { getAllGames } from '../fake-api/index'; export const App = () => { return ( <> <Header title="Board Game Hoard" /> <div className={styles.container}> <div className={styles['games-layout']}> {getAllGames().map((x) => ( <Link to={`/game/${x.id}`} key={x.id}> <Card className={styles['game-card']}>
-
Build and deploy your
store
project. Your deployed version should now be showing some games.⚠️ Clicking on games and displaying game details will still not work. We can fix that later.