Skip to content

Commit

Permalink
💄 Rename api directory (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
zatonix authored Feb 4, 2024
1 parent 18d0a96 commit cf4b148
Show file tree
Hide file tree
Showing 22 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci_api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ name: Launch tests application
on:
pull_request:
paths:
- 'api/**'
- 'chess-analysis-api/**'

jobs:
tests:

runs-on: ubuntu-latest
defaults:
run:
working-directory: ./api
working-directory: ./chess-analysis-api

strategy:
matrix:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

This is a chess tactics trainer. It is a software for lichess game analysis and tactics training.

<img src="images/example.png" width="520" height="680" />
<img src="images/example.png" width="500" height="670" />


## Getting Started
Expand All @@ -30,7 +30,7 @@ This is a chess tactics trainer. It is a software for lichess game analysis and
### Installing

```bash
cd api/
cd chess-analysis-api/
make init # to build api docker image

cd ../app
Expand All @@ -40,7 +40,7 @@ npm install # to install app dependencies
### How to Backend

```bash
cd api/
cd chess-analysis-api/
make run # to launch api
make test # to launch tests
make lint # to check linter
Expand Down
4 changes: 2 additions & 2 deletions app/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import "./globals.css";
const inter = Inter({ subsets: ["latin"] });

export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
title: "Chess Tactics Trainer",
description: "An app to train your chess tactics",
};

export default function RootLayout({
Expand Down
1 change: 1 addition & 0 deletions app/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export default function Home() {
setMissedTactics([])
const response = await fetch(`http://localhost:5555/missed_tactics/${name}`)
const data = await response.json() as MissedTactic[]
console.log(data)
setMissedTactics(data)
setIsLoading(false)
}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit cf4b148

Please sign in to comment.