kriasoft / react-app

Create React App with server-side code support
https://t.me/reactapp
MIT License
613 stars 84 forks source link

Need documentation #26

Open karanaggarwal1 opened 6 years ago

karanaggarwal1 commented 6 years ago

There should be documentation for explaining the server side code, as well as the folder structure. Even though it is inherited from create-react-app, some kind of documentation should be present. Steps to Reproduce NA I would like to work on this.

koistya commented 6 years ago

Thanks, a PR would be highly appreciated. You can take a look here as an example project.

karanaggarwal1 commented 6 years ago

Okay sure. I would look into it

PabloMarch commented 6 years ago

Missing const assets = require('./assets.json'); on the app.node.js, this should be also explained on the documentation.

EDITED:

In case anyone else is having this same question this is the content of my file build/assets.json:

{
  "main": [
    "static/js/bundle.js",
    "static/js/bundle.js.map"
  ]
}

and update the require to const assets = require('./assets.json').main;