Code Monkey home page Code Monkey logo

react-universal's Introduction

Universal React App

Logo of Tech Used


  • Uses React both in Client-Side and Server-Side
  • Uses Redux to manage states
  • Uses Server-side React rendering which makes the app an Isomorphic JavaScript App
  • Uses Node + Express as backend
  • Uses MongoDB for persisting data
  • Latest version of Webpack for bundling and transpiling React and ES6

How to use this app?

  • Clone this repo
  • Run npm install - to install all the dependencies
  • Run npm run mongod - to start MongoDB Server in Windows
  • Run npm start - to start NodeJS Server
  • Go to http://localhost:3000 - To see the app running

There are few more NPM command

  • npm run webpack - to run webpack while you're making changes in the client app.
  • npm run wp - to run webpack for production. It doesnot watch the files for changes

Note: Please change the location of your MongoDB path for windows at line #7 in package.json

Branches

There are currently few more branches in this repo apart from the master branch

  • client-app : Contains the react-redux app before converting it into an Isomophic app
  • universal-app : Contains the universal react app with server side rendering
  • production : Contains the production build configs for webpack and removal of console logs

TODO:

  • Try to reduce the bundle size
  • Will be working on the production version of this app
  • Contents for About and Contact Pages
  • Authentication for Admin
  • Edit already existing book details
  • Image upload for adding new books
  • Convert it into a PWA

Contributors are welcome

Since I am very new to React and Universal React apps I would like to learn more therefore opening issues and contributions are welcome. Just drop me a mails here: [email protected]

react-universal's People

Contributors

ashokdey avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

react-universal's Issues

Implement ES6 features

There may be lots of places where the code can be made more readable and cleaner using ES6 features. Features that can be used are:

  • Arrow functions
  • Destructuring
  • Short Object Literals

use LinkContainer to make it a SPA

Currently the app is not behaving as a single page application.

  • Using LinkContainer from react-router-bootstrap to achieve the SPA feature

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.