You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-21Lines changed: 23 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,38 +1,38 @@
1
1
# Jean Test Mobile
2
2
3
-
JeanTest is a React Native invoicing mobile application. It is used by business owners to create & manage invoices with their customers.
3
+
JeanTest is a React Native invoicing mobile application. It is used by business owners to create and manage invoices with their customers.
4
4
5
5
This repository contains the skeleton of JeanTest & instructions for this React Native hiring test.
6
6
7
7
## Mission
8
8
9
9
Your goal is to build a feature-rich prototype of JeanTest that allows to:
10
10
11
-
- List & quickly find invoices
12
-
- Create new invoices
13
-
- Manage existing invoices
11
+
-**List & quickly find invoices**
12
+
-**Create new invoices**
13
+
-**Manage existing invoices**
14
14
- Move them from drafts to finalized invoices
15
15
- Mark them as paid
16
16
- Update them
17
17
- Delete them
18
18
19
-
You'll be leveraging an existing REST HTTP API hosted at `https://jean-test-api.herokuapp.com/`.
19
+
For this, you'll be leveraging an existing REST HTTP API hosted at `https://jean-test-api.herokuapp.com/`.
20
20
21
-
The API is documented with [OpenAPI](https://www.openapis.org/)& has a documentation available [here](https://jean-test-api.herokuapp.com/api-docs/index.html). Each API call must be authenticated using a`X-SESSION` header with the provided token.
21
+
The API is documented with [OpenAPI](https://www.openapis.org/)and has documentation available [here](https://jean-test-api.herokuapp.com/api-docs/index.html). Each API call must be authenticated using an`X-SESSION` header with the provided token.
22
22
23
23
### What's expected
24
24
25
-
JeanTest should contain essential features listed above & be coded in a way that makes it intuitive, performant & maintainable.
25
+
Your exercise submission should:
26
26
27
-
We expect you to adopt standard coding practices, including testing, as if you were working on a real-world application with other coworkers.
28
-
29
-
We want you to **build JeanTest from existing UI components provided in `src/ui`** by [Tamagui](https://tamagui.dev/ui/intro?subpath=intro) in order to focus on composing screens & features. Feel free to add new ones but keep in mind that it won't be taken into account.
30
-
31
-
We encourage you to use pre-installed dependencies or add new ones if you have a legitimate use of them.
27
+
-**Have the essential features** listed above while maintaining an intuitive, performant, and maintainable codebase.
28
+
-**Follow the standard coding practices** and include testing, just as you would when developing a real-world application with teammates.
29
+
-**Leverage existing UI components** provided in `src/ui` by Tamaguito focus on composing screens and features. While you're welcome to add a new UI library, you'll need to justify such an addition.
30
+
-**Use pre-installed dependencies** or add new ones if you have a legitimate use of them.
31
+
-**Create a clear README** with comprehensive instructions for setup, usage, additional features, etc.
32
32
33
33
### The interview
34
34
35
-
In order to prepare the interview, please take the time to identify advanced features that could be added in the future (even if the API currently does not support it!).
35
+
To prepare the interview, please take the time to identify advanced features that could be added in the future (even if the API currently does not support it!).
36
36
37
37
For each feature/tech improvement, we want to understand:
38
38
@@ -42,15 +42,15 @@ For each feature/tech improvement, we want to understand:
42
42
43
43
### Submit your application
44
44
45
-
In order to send your code, please create a private GitHub repository containing the source code of your application.
45
+
To submit your code, create a private GitHub repository with your application's source code.
46
46
47
-
Invite the following GitHub users to it: `@julienpinquie``@soyoh``@LucaGaspa``@greeeg`
47
+
Invite the following GitHub users to it: @adrien-pennylane@keShraa@Lecsar@michaelvitello
48
48
49
49
## Getting started
50
50
51
-
In order to get started, clone this repository & run the `bin/setup` bash script which will install dependencies & take care of autogenerated files.
51
+
To get started, clone this repository & run the `bin/setup` bash script which will install dependencies & take care of autogenerated files.
Make sure to add your `API_TOKEN` in `src/App.tsx` to send authenticated requests to the API.
65
+
To start sending authenticated requests to the API, patch the `API_TOKEN` in `src/App.tsx`.
66
66
67
67
### Data model
68
68
69
-
The REST API contains 4 resources: customers, products, invoices & invoice lines.
69
+
The REST API contains four resources: customers, products, invoices and invoice lines.
70
70
71
71
Side notes:
72
72
73
73
- Invoices contain multiple invoice lines.
74
74
- Invoice lines are accessed via their invoice. To update them, use the relevant invoice API endpoints.
75
-
- Once the `finalized` field is set to `true` for invoices, no field may be modified except for `paid`.
76
75
77
76
### API client
78
77
79
-
An API client based on `openapi-client-axios` is available through a React Context set up in `src/api/index.tsx`. The provider is mounted in `src/App.tsx` & the context can be consumed using the `useApi` hook from `src/api/index.tsx`.
78
+
An API client based on `openapi-client-axios` is available through a React Context in `src/api/index.tsx`. The provider is mounted in `src/App.tsx` & the context can be consumed using the `useApi` hook from `src/api/index.tsx`.
0 commit comments