Skip to content

jiayingy/reddit-clone

Repository files navigation

reddit-clone

A Vue.js project

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

# run unit tests
npm run unit

# run all tests
npm test

Codes

This project is created using VueJS boilerplate.

All Vue components under src are written by me.

For a detailed explanation on how things work, check out the guide and docs for vue-loader.

Structure

This reddit clone consists of only 3 main tabs:

Popular:

Lists top 20 titles according to votes in descending order

New

Lists last 10 newly added titles from newest to oldest
to ensure that new titles will be seen by users

All

Lists all titles
all titles are listed at once as pagination is not implemented