Skip to content

Commit e8f2089

Browse files
committed
Homework11: Redux and react-hook-form
1 parent c5fae8f commit e8f2089

Some content is hidden

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

54 files changed

+20587
-0
lines changed

Homework11/convert-app/.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
14+
# misc
15+
.DS_Store
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*
475 KB
Loading

Homework11/convert-app/README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Currency exchange app
2+
3+
## Description
4+
5+
Create a currency conversion application to help calculate what the amount is worth in
6+
another currency.
7+
8+
**API**
9+
To achieve that, you can use APIs from the next urls:
10+
11+
- https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@latest/v1/currencies.json (to
12+
receive a list of shortened names of currencies (keys of the json))
13+
- https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@latest/v1/currencies/[currency].
14+
min.json (to receive the data for exchanges, you have to replace [currency] with the
15+
necessary key from the list from the first link)
16+
As inputs for choosing currencies you may use native inputs, TextField or Select from the
17+
MUI library. For other component you may also use components from the MUI library
18+
For the first homework it is necessary to complete only part nr. 1 from the second
19+
screenshot
20+
21+
## App preview
22+
23+
![alt text](Convert-App.gif)
24+
25+
## Available Scripts
26+
27+
First you need to run a mock-server with currency data
28+
All necessary data will be posted on [http://localhost:3000/currency](http://localhost:3000/currency)
29+
30+
### `npm run server`
31+
32+
Then you should run this app on another port:
33+
34+
### `npm start`
35+
36+
## Learn More
37+
38+
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
39+
40+
To learn React, check out the [React documentation](https://reactjs.org/).
41+
42+
Also you can pay a little attention to MUI [MUI documentation](https://mui.com/)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"currency": {
3+
"eur": "Euro",
4+
"usd": "US Dollar",
5+
"rub": "Russian Ruble",
6+
"byn": "Belarusian Ruble",
7+
"btc": "Bitcoin",
8+
"chf": "Swiss Franc",
9+
"gbp": "British Pound",
10+
"jpy": "Japanese Yen",
11+
"cny": "Chinese Yuan Renminbi",
12+
"kwd": "Kuwaiti Dinar"
13+
}
14+
}

0 commit comments

Comments
 (0)