Giter Club home page Giter Club logo

csanon's Introduction

CSAnon

An anonymous board to ask for help, coding or otherwise.

WELCOME, ITERATORS!

In order to work on this project, you're going to need a few things:

  1. A Postgres server (either local or cloud)

  2. A Redis server (we ran a local instance, see https://redis.io/topics/quickstart )

  3. A .env file on the root directory, which has the following:

DB_URL=postgres:<your postgres instance>

CLIENT_ID=<the client ID for your github Oauth>

CLIENT_SECRET=<the client secret for your github Oauth>

JWT_SECRET=<A random string of your choosing>

PROJECT_NAME=<your github project name>

  1. On your github Oauth, set the redirect url to localhost:8080/auth/callback

  2. Load a csv with the list of allowable usernames, complete logic for the hashAllUsersUtil file. Run this util to populate your db with the hashed usernames.

  3. Run populateUserDB to fill the users table with pokemon names and urls.

POSTGRES SERVER:

Schemas:

MESSAGE:


PIC TIMESTAMP

USERNAME MESSAGE


TABLE hash_list COLUMN bcrypt_hash varchar

TABLE messages COLUMN id int PRIMARY KEY COLUMN timestamp date COLUMN user_id int FOREIGN KEY COLUMN message varchar

TABLE users COLUMN user_id int PRIMARY KEY COLUMN username varchar COLUMN pic_url varchar

SERVERSIDE:

REDIS (key/value pairs) -

Stores the following key / value pairs:

  • username : 'true'
  • socketID: username

csanon's People

Contributors

svansig avatar myang5 avatar anthonylee2797 avatar ebnouhamoud avatar vicbal avatar

Stargazers

 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.