Giter Club home page Giter Club logo

members-only's Introduction

members-only

Exclusive (D Double E voice) clubhouse where your members can write anonymous posts.

Live Preview

image

About

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.

Built with

  • JavaScript
  • NodeJS
  • MongoDB
  • Express.js
  • Passport
  • Pug

Getting Started

Here's how to run this project locally

Prerequisites

First, you should have Node, Git (if you use Linux, it's already installed.) and an Atlas dabatase set up.

Installation

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

Roadmap

  • Set up database: Users and Messages.
  • Add routes and controllers.
  • Add passport session handling.
  • Add views.
  • Add limits and privileges.
  • Add socket messaging.

Contact

Twitter

LinkedIn

Project Link

members-only's People

Contributors

stpafk avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.