Skip to content

Commit 248ed34

Browse files
committed
Update dependencies and add logout
1 parent badfb10 commit 248ed34

File tree

9 files changed

+829
-724
lines changed

9 files changed

+829
-724
lines changed

DOCUMENTATION.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,13 @@ We recommend you look through these docs together.
1212
| [Full-Stack Overview](./docs/full-stack_overview.md) | Frontend/Backend communication |
1313
| [Authentication](./docs/authentication.md) | JSON Web Tokens |
1414

15-
1615
## Reference Docs:
1716

18-
You do not need to read all of these docs, but they can be useful if you
19-
come across something in the project you don't understand.
17+
You do not need to read all of these docs, but they can be useful if you come
18+
across something in the project you don't understand.
2019

21-
| Title | Summary |
22-
| --------------------------------------------------------- | --------------------------------------------- |
23-
| [Backend Structure](./docs/backend_structure.md) | `main.go`, routers, controllers, models |
24-
| [Frontend Structure](./docs/frontend_structure.md) | `App.jsx`, routes, pages, components |
25-
| [Environment Variables](./docs/environment_variables.md) | `process.env`,`import.meta.env`, `.env` files |
26-
| [JS Modules](./docs/modules.md) | `import` vs. `require` |
20+
| Title | Summary |
21+
| -------------------------------------------------------- | --------------------------------------------- |
22+
| [Backend Structure](./docs/backend_structure.md) | `main.go`, routers, controllers, models |
23+
| [Frontend Structure](./docs/frontend_structure.md) | `App.jsx`, routes, pages, components |
24+
| [Environment Variables](./docs/environment_variables.md) | `process.env`,`import.meta.env`, `.env` files |

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ Follow the instructions here: https://go.dev/doc/install
6666
```
6767
brew services start postgresql
6868
```
69+
6970
7. Create your databases:
7071
```
7172
createdb acebook

docs/authentication.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ implemented authentication yet, that's not going to impede you right now.
88

99
1. A registered user submits their email address and password via the React
1010
front end.
11-
2. The Express backend receives the data and tries to find a user in the DB with
12-
the same email address.
11+
2. The Gin backend receives the data and tries to find a user in the DB with the
12+
same email address.
1313
3. If a user is found, the password in the database is compared to the password
1414
that was submitted.
1515
4. If the passwords match, a JSON Web Token is generated and returned, as part

docs/full-stack_overview.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,20 @@ You don't need to do a deep dive on each one right now. Instead, try to get a
2626
feeling for the big picture and then dive into the details when a specific task
2727
pushes you in that direction.
2828

29-
### **R** is for React
29+
### Gin
30+
31+
[Gin](https://github.com/gin-gonic/gin) is a high-performance, lightweight web
32+
framework for the Go programming language, similar to Express in JS. It has
33+
support for routing and middlware.
34+
35+
### React
3036

3137
[React](https://reactjs.org/) is a hugely popular tool that is used to build
3238
engaging front ends. The basic principle is that the front end is split up into
3339
_components_, each of which _could_ include some logic, template structure
3440
(HTML) and styling (CSS).
3541

36-
### **N** is for Node
42+
### Node
3743

3844
JavaScript was originally designed to run exclusively in browsers, such as
3945
Chrome. [Node](https://nodejs.org/en/) is a tool that allows you to run
@@ -57,9 +63,9 @@ This application is comprised of two distinct pieces:
5763
- A frontend built with React
5864

5965
It's important to note that these are two completely different programs. They
60-
don't share any code. They have their own files and dependencies.
61-
Imagine that they're always running on two different machines (though when you
62-
are working locally, everything will be running on your computer).
66+
don't share any code. They have their own files and dependencies. Imagine that
67+
they're always running on two different machines (though when you are working
68+
locally, everything will be running on your computer).
6369

6470
The **only way** the frontend can communicate with the API is through HTTP
6571
requests over the network. The React front end sends HTTP requests to the

docs/modules.md

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

0 commit comments

Comments
 (0)