This project is build using a React frontend and backend using Express, NodeJS + MongoDB. User authentication is handled via a local strategy with Passport.js. JSON Web Tokens are used to protect routes within the application. Unauthorized users can only visit the homepage and the sign in/sign up pages.
This project is build according to the specification of the Odin-Book lesson.
Users can sign up to create new posts and follow other users. To take a quick look there is the ability to sign as a guest.
Access the Nahebook
In order to run project locally NodeJS + Git needs to installed on your system
Follow these steps on Mac/Linux/WSL to run the project locally:
- Open a terminal and go to a directory you want the repository to be in
- Select Code in the Github project page and copy the SSH URL
- git clone SSH URL
- 'cd' into the repository you just cloned
- 'cd' into nahebook-backend & run 'npm install'
- Run 'npm run serverStart' in nahebook-backend directory
- Open another terminal
- 'cd' into nahebook-frontend & run 'npm install'
- Run 'npm run dev' in nahebook-frontend
- Open the link that is shown in the terminal in your browser