Coder Social home page Coder Social logo

yc-news's Introduction

YC News - portal

Demo

https://ycnews.appspot.com

Tasks

  • Front Page” feed with line chart.
  • Next & Prev Buttons - url friendly
  • Upvote
  • Hide
  • Chart to represent Votes over ID
  • Test cases
  • SSR Server side rendering & SEO Friendly
  • PWA Optimization
  • Responsive
  • CI/CD - using google build
  • Deployed to app engine

Stack

  • Typescript
  • React
  • Redux
  • SSR
  • Web pack & CRA
  • Google Cloud build, Google App engine

Developement setup

  1. Install depedencies from npm registry by running yarn or npm install
  2. Web pack dev server can run using yarn run dev

Production setup (SSR)

  1. Tanspile client files using yarn run client-build
  2. Tanspile server files using yarn run server-build
  3. Run the server using node server/dist

Deploy to app engine

To enable auto deploy to googel app engine whenever push to github, you need to setup as following.

  1. Create the proeject from https://console.cloud.google.com/ and enable billing
  2. Enable cloud build: https://console.cloud.google.com/cloud-build
  3. Create triggers from https://console.cloud.google.com/cloud-build/triggers
  4. Modify IAM role from https://console.cloud.google.com/iam-admin/iam for <projectid>@cloudbuild.gserviceaccount.com. It should be App Engine Admin, Cloud Build Service Account
  5. Enable app engine from https://console.cloud.google.com/appengine

Testing

Unit test cases is covered using jest and @testing-library/react. It can run using yarn run test

yc-news's People

Contributors

msbadar avatar

Stargazers

 avatar  avatar Sandeep Kumar avatar

Watchers

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