shakhal / trump_tweets

Demo node.js and react project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ta

This is a small demo app that shows #trump tweets.
It is made of two projects, both in node.js.
Server side under / (root dir) - runs on port 3001
and Client side project under /client - runs on port 3000

Client side is based of react-starter-kit
https://github.com/kriasoft/react-starter-kit

Instructions:

Server side (api):

  • install packages
    • $ npm install

Client side:

  • install packages
    • $ cd client
    • $ npm install

To run in development mode:

  • Run server side

    • $ npm start
  • Run client side

    • $ cd client
    • $ yarn start
  • Browse to: http://localhost:3000/ (client side project, auto updates as you edit)

To run in production mode:

  • Run server side
    • $ npm start
  • Browse to: http://localhost:3001/ (server side serves the built client side code statically)

To built the client project:

  • $ cd client
  • $ yarn run build

About

Demo node.js and react project


Languages

Language:JavaScript 82.5%Language:HTML 10.3%Language:CSS 7.2%