Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnForster committed Jan 28, 2024
1 parent 23ba0d1 commit 98d679d
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 35 deletions.
6 changes: 1 addition & 5 deletions DOCUMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ We recommend you look through these docs together.
| ---------------------------------------------------- | ------------------------------ |
| [Full-Stack Overview](./docs/full-stack_overview.md) | Frontend/Backend communication |
| [Authentication](./docs/authentication.md) | JSON Web Tokens |
| [Accessibility](./docs/accessibility.md) (TODO) | Writing inclusive Web Pages |


## Reference Docs:

Expand All @@ -24,7 +24,3 @@ come across something in the project you don't understand.
| [Frontend Structure](./docs/frontend_structure.md) | `App.jsx`, routes, pages, components |
| [Environment Variables](./docs/environment_variables.md) | `process.env`,`import.meta.env`, `.env` files |
| [Modules](./docs/modules.md) | `import` vs. `require` |
| [Route Handlers](./docs/route_handlers.md) (TODO) | `req`, `res`, middleware |
| [MongoDB Models](./docs/mongodb_models.md) (TODO) | Schemas |
| [Fetching in React](./docs/fetching_in_react.md) (TODO) | `useEffect` |
| [Deploying](./docs/deploying.md) (TODO) | Using Render to deploy Acebook |
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ For an explanation of these environment variables, see the documentation.

### How to run the server and use the app

1. Start the server application (in the `api` directory)
1. Start the server application (in the `api` directory) in dev mode:

```
; cd api
; npm start
; npm run dev
```

2. Start the front end application (in the `frontend` directory)
Expand All @@ -110,7 +110,7 @@ In a new terminal session...

```
; cd frontend
; npm dev
; npm run dev
```

You should now be able to open your browser and go to
Expand Down
3 changes: 0 additions & 3 deletions docs/accessibility.todo.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ implemented authentication yet, that's not going to impede you right now.
the backend).
7. When the user logs out, the front end discards the token.

![authentication flow diagram](./diagrams/auth_flow.png)
![diagram of the above authentication flow](./diagrams/auth_flow.png)

## What is a JSON Web Token?

Expand Down
Empty file removed docs/deploying.todo.md
Empty file.
Empty file removed docs/fetching_in_react.todo.md
Empty file.
4 changes: 2 additions & 2 deletions docs/full-stack_overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,13 @@ And the body of the response would look like this.
```

Here's a diagram of the above <br> <br>
![a diagram of client/server applications](./diagrams/project_communication.png)
![a diagram of the client/server application with the client making a request to the server and receiving a response](./diagrams/project_communication.png)
<br> <br>

Once received by the React FE, the JSON in the response body is used to render a
list of posts on the page.

![response body mapped onto a page](./diagrams/response_parsing.png)
![response body mapped onto a page with the message of each post being displayed on a new line](./diagrams/response_parsing.png)

This architectural pattern is has a number of advantages. For example, it allows
teams to build multiple front ends, all of which use the same backend API. You
Expand Down
Empty file removed docs/mongodb_models.todo.md
Empty file.
Empty file removed docs/route_handlers.todo.md
Empty file.
42 changes: 21 additions & 21 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 98d679d

Please sign in to comment.