Giter VIP home page Giter VIP logo

reddit-clone's Introduction

Reddit Clone

This is a clone-version of Reddit. By default, this app will build in Production mode.

Build Status license

View the live demo of Reddit-Clone.

Features in this Project

  • contains a list of topics which allows users to upvote or downvote multiple times
  • allow user to submit topics, which topic is simply a string that does not exceed 255 characters.
  • 20 sample topics listed on the page initially, user can add more
  • unit test are included in this project

To build the output

$ npm install

# for development
$ npm run dev

# to output the build
$ npm run build

Launch the App

Go to ./dist folder, just launch the index.html in your browser.

To test the App

$ npm run test

Superpowers (plugins) used in this project

  • Icons: Font-Awesome
  • Build System: Webpack Boilerplate Credits: @emiloberg
  • Transpiler: Babel
  • Additional Javascript Library: Underscore.js
  • Test Runner + Framework: Jest

File Structure for reddit-clone

> [reddit-clone]
    |
    ├── [__test__]            ::> folder contains all test scripts
    |
    ├── [dist]                ::> output folder for this project
    |
    ├── [src]                 ::> source folder, where all the logic reside
    |     |
    |     ├── [components]    ::> logic structure to be injected into the Html backbone
    |     |
    |     ├── [css]           ::> styling sheets for this project
    |     |
    |     ├── [data]          ::> holds the static data (list of entries)
    |     |
    |     ├── [img]           ::> images used in this project
    |     |
    |     ├── [methods]       ::> logics that altered the page and list
    |     |
    |     ├── $global.js      ::> global scope variables used throughout the app
    |     |
    |     └── index.js        ::> the starter of script
    |
    ├── index.html            ::> Project Html Backbone
    |
    ├── package.json          ::> List of NPM Packages required for this project
    |
    └── webpack.config.js     ::> Webpack Configuration File

Roadmap

  • create the mock page for Reddit list
  • include build system: Webpack
  • include a Javascript Library: underscore.js
  • Maintain a list of topics and its upvotes/downvotes in-memory data structure (20 topics in a page)
  • Allow the user to upvote or downvote a topic multiple times and sort the list
  • Allow the user to submit topics, a "topic" is simply a string that does not exceed 255 characters.
  • Writing unit test
  • update readme document
  • modularize css (using SCSS preprocessor)
  • ensure it fits for other devices

reddit-clone's People

Contributors

aaronkow avatar noubre 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.