Skip to content

Commit 8c69cda

Browse files
committed
update: readme
1 parent 2210d51 commit 8c69cda

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Basic demo to show the usage of the React context API with authentication flow
55
Project Structure:
66

77
```sh
8-
-api
8+
-server
99
-src
1010
-data
1111
-schemas
@@ -15,13 +15,15 @@ Project Structure:
1515
-index.js
1616
-.env
1717

18-
-app
18+
-client
1919
-public
2020
-src
2121
-components
22-
-logic
23-
-provider
22+
-pages
23+
-providers
24+
-services
2425
-utils
26+
-App.js
2527
-index.js
2628
-.env
2729
```
@@ -39,7 +41,7 @@ Server:
3941
$ npm i
4042
```
4143

42-
2. Create the .env file on the root of the api/ folder
44+
2. Create the .env file on the root of the server/ folder
4345

4446
```sh
4547
$ touch .env
@@ -54,7 +56,7 @@ TOKEN_SECRET=your-secret
5456
TOKEN_EXP=3h
5557
```
5658

57-
3. Start the API
59+
3. Start the Server
5860

5961
```sh
6062
$ npm start
@@ -68,7 +70,7 @@ Client:
6870
$ npm i
6971
```
7072

71-
2. Create the .env file on the root of the app/ folder
73+
2. Create the .env file on the root of the client/ folder
7274

7375
```sh
7476
$ touch .env
@@ -82,7 +84,7 @@ REACT_APP_API_BASE_URL=http://localhost:5000/api
8284

8385
\*Note: In order to enviroment variables work with this react project without touching any config file they all have to start with \*\*REACT_APP\*\*
8486

85-
3. Start the app
87+
3. Start the client
8688

8789
```sh
8890
$ npm start

0 commit comments

Comments
 (0)