Skip to content

Commit 18d819c

Browse files
authored
Merge pull request #14 from mikelpmc/feature/modern-react
Feature/modern react
2 parents f814ba0 + 8c69cda commit 18d819c

Some content is hidden

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

57 files changed

+11685
-573
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

app/package.json

Lines changed: 0 additions & 19 deletions
This file was deleted.

app/src/components/App.js

Lines changed: 0 additions & 68 deletions
This file was deleted.

app/src/components/App.test.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

app/src/components/Dashboard/index.js

Lines changed: 0 additions & 32 deletions
This file was deleted.

app/src/components/Login/index.js

Lines changed: 0 additions & 43 deletions
This file was deleted.

app/src/provider/index.js

Lines changed: 0 additions & 114 deletions
This file was deleted.

0 commit comments

Comments
 (0)