Exclusive (D Double E voice) clubhouse where your members can write anonymous posts.
This project is a glance on auth, cookies and sessions and how to use these for privileges and private stuff. For example, users with no account can see posts, but can't interact or see who posted it. Also, this project includes an "special" user whom can act like an admin on the website, deleting from posts to users; this "special user" feature is gained by contributing - fake money - into the website.
In this project, we can:
- Log in and Register an account.
- Read, create and delete posts.
- "Contribute" to the website.
- Become an administrator and get special features.
Here's how to run this project locally
First, you should have Node, Git (if you use Linux, it's already installed.) and an Atlas dabatase set up.
Clone the repo
git clone https://github.com/stpafk/members-only
Install NPM packages
npm install
Create a .env
file with a variable called MONGO like this:
MONGO = "mongodb+srv://<username>:<password>@<cluster>.<key>.mongodb.net/?retryWrites=true&w=majority"
Run the application:
npm run dev
- Set up database: Users and Messages.
- Add routes and controllers.
- Add passport session handling.
- Add views.
- Add limits and privileges.
- Add socket messaging.