https://github.com/terieyenike/pangea-notes-react-authn
Authenticated notes app using React, Pangea AuthN service to prevent unauthorized access, and local storage to store data locally on the user's device.
https://github.com/terieyenike/pangea-notes-react-authn
javascript pangeacyber reactjs scss typescript
Last synced: 7 months ago
JSON representation
Authenticated notes app using React, Pangea AuthN service to prevent unauthorized access, and local storage to store data locally on the user's device.
- Host: GitHub
- URL: https://github.com/terieyenike/pangea-notes-react-authn
- Owner: Terieyenike
- License: mit
- Created: 2023-11-15T07:18:34.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-16T09:23:15.000Z (almost 2 years ago)
- Last Synced: 2025-03-11T13:13:13.705Z (7 months ago)
- Topics: javascript, pangeacyber, reactjs, scss, typescript
- Language: TypeScript
- Homepage: https://notes-ten-beryl.vercel.app
- Size: 507 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Notes app
Authenticated notes app using React, Pangea AuthN service to prevent unauthorized access, and local storage to store data locally on the user's device.
### Demo

### Deployed app
Check out the app:
[React notes app](https://notes-ten-beryl.vercel.app/)
## Setup
### Clone the repo and install dependencies
```
% git clone git@github.com:pangeacyber/pangea-example-react-authn.git
% cd pangea-example-react-authn
% yarn install
```### Configure Pangea AuthN Service
If you don't already have an account, signup at https://console.pangea.cloud/
Create a project and enable the AuthN Service in the Pangea Console.
> [!IMPORTANT]
> Configure a Redirect Setting for your project in Pangea Console.
> - Navigate to the `AuthN` service, `General > Redirect Settings`
> - Click `+ Redirect`
> - Type `http://localhost:3000` in the URL input and click `Save`If the app is running on a different host or port number, the Redirect Setting will need to be updated to match your setup.
Note the following fields, in the `AuthN > Overview` section, for use in the next step.
- Client Token: this is the CLIENT_TOKEN
- Domain: this is the PANGEA_DOMAIN
- Hosted Login: this is the LOGIN_URL### Configure environment variables
```
% cp .env.template .env.local
```Set the following values in .env.local
- REACT_APP_CLIENT_TOKEN={CLIENT_TOKEN}
- REACT_APP_LOGIN_URL="{LOGIN_URL}"
- REACT_APP_PANGEA_DOMAIN="{PANGEA_DOMAIN}"### Start the server
```
% yarn start
```### Vist the app
Open `http://localhost:3000` in a browser.
### Tech stack
- React
- Pangea### Article
[Shield Your Thoughts: Building an Encrypted Note App with React and Pangea Authentication](https://terieyenike.hashnode.dev/encrypted-note-app)
### Author
[Teri Eyenike](https://twitter.com/terieyenike)