https://github.com/emanuelefavero/members-only
This is an Authentication assignment project from the Odin Project.
https://github.com/emanuelefavero/members-only
authentication express mongodb nodejs react
Last synced: 3 months ago
JSON representation
This is an Authentication assignment project from the Odin Project.
- Host: GitHub
- URL: https://github.com/emanuelefavero/members-only
- Owner: emanuelefavero
- Created: 2022-10-25T20:30:13.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-14T00:50:47.000Z (over 3 years ago)
- Last Synced: 2025-02-04T16:50:32.493Z (over 1 year ago)
- Topics: authentication, express, mongodb, nodejs, react
- Language: TypeScript
- Homepage:
- Size: 502 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Members Only
This is an assignment project from [the Odin Project](https://www.theodinproject.com/lessons/nodejs-members-only). It is part of the full stack Authentication section of their course.
_PLEASE NOTE: I've added typescript and react to this project. The original project was just node and express._
## Test the app locally on your machine
- Clone the repo and `cd` into the project directory
- Add a _.env_ file in the backend directory with the following variables:
```dotenv
MONGODB_URI='YOUR_MONGODB_URI'
SESSION_SECRET_KEY='YOUR_SECRET_KEY'
PORT=4000
```
- Run:
```bash
cd backend
yarn install
yarn start
```
- Open a new terminal and run:
```bash
cd client
yarn install
yarn start
```
- Open [http://localhost:3000](http://localhost:3000) to view it in the browser.