GithubHelp home page GithubHelp logo

medaminefh / crappit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from trangj/crappit

0.0 0.0 0.0 4.64 MB

A less good version of Reddit developed using Node.js, React, PostgreSQL, and Typescript. Users are able to sign up, login and create posts and comment on others. Posts, like in Reddit fashion, can be upvoted or downvoted. A set of moderation tools have also been added! Design is based off of the classic Reddit layout.

Home Page: https://www.crappit.me

JavaScript 0.47% CSS 1.64% TypeScript 97.89%

crappit's Introduction

Crappit

A less good version of Reddit developed using Node.js, React, PostgreSQL, and Typescript. Users are able to sign up, login and create posts/topics and comment on others. Posts and comments, like in Reddit fashion, can be upvoted or downvoted. In addition, a plethora of moderation tools have been added, allowing to secure your communities or spice up topics with custom banners/icons!

You can play around with a live build of this app here

Screenshot

light theme dark theme

not up to date, take a look at the live build for the full experience

Current Features

Crappit currently has these features:

  • sign up using email or Google OAuth
  • create topics, create posts for each topic, create comments for each post, create comment trees
  • spice up posts with media like photos or gifs, or attach links, or use the rich text editor to write an engaging post
  • upvote or downvote posts and comments
  • add topics to your favourites, such that they can be accessed easily from the navbar
  • post and topic moderation, you can add moderators and delete posts and comments!
  • customize topics with banners and icons and also add rules to topics
  • search the entire crappit database for that post you were looking for
  • dark mode support

Installation

Want to run Crappit? Follow these steps:

  1. Open up your terminal and install node.js. You can download it here.
  2. In your terminal, cd into a directory you want to clone Crappit.
  3. Follow the commands below:
git clone https://github.com/trangj/Crappit.git
cd Crappit/server
npm i
cd ../client
npm i
  1. You will need to set up your process variables in order for the app to function, ensure that you have the following variables setup in .env file:
  DOMAIN: 'localhost'
  DATABASE_URL: "<your postgres database url>"
  REDIS_URL: "<your redis database url>"
  SESSION_SECRET: "<your access token secret>"
  AWS_ACCESS_KEY_ID: "<your aws access id>"
  AWS_SECRET_ACCESS_KEY: "<your aws access key>"
  GOOGLE_CLIENT_ID: "<your google id>"
  GOOGLEI_CLIENT_SECRET: "<your google secret>"
  SENDGRID_KEY: "<your sendgrid api key>"
  CLIENT_URL: "http://localhost:3000"
  SERVER_URL: "http://localhost:5000"
  1. To run the server, enter the command:
npm run dev
  1. Have fun!

crappit's People

Contributors

dependabot[bot] avatar trangj 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.