Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Basic demo to show the usage of the React context API with authentication flow
Project Structure:

```sh
-api
-server
-src
-data
-schemas
Expand All @@ -15,13 +15,15 @@ Project Structure:
-index.js
-.env

-app
-client
-public
-src
-components
-logic
-provider
-pages
-providers
-services
-utils
-App.js
-index.js
-.env
```
Expand All @@ -39,7 +41,7 @@ Server:
$ npm i
```

2. Create the .env file on the root of the api/ folder
2. Create the .env file on the root of the server/ folder

```sh
$ touch .env
Expand All @@ -54,7 +56,7 @@ TOKEN_SECRET=your-secret
TOKEN_EXP=3h
```

3. Start the API
3. Start the Server

```sh
$ npm start
Expand All @@ -68,7 +70,7 @@ Client:
$ npm i
```

2. Create the .env file on the root of the app/ folder
2. Create the .env file on the root of the client/ folder

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

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

3. Start the app
3. Start the client

```sh
$ npm start
Expand Down
19 changes: 0 additions & 19 deletions app/package.json

This file was deleted.

68 changes: 0 additions & 68 deletions app/src/components/App.js

This file was deleted.

9 changes: 0 additions & 9 deletions app/src/components/App.test.js

This file was deleted.

32 changes: 0 additions & 32 deletions app/src/components/Dashboard/index.js

This file was deleted.

43 changes: 0 additions & 43 deletions app/src/components/Login/index.js

This file was deleted.

114 changes: 0 additions & 114 deletions app/src/provider/index.js

This file was deleted.

Loading