https://github.com/seandinan/rex
Skeleton for Node/Express backend + React front-end + Babel/Webpack to bundle things up
https://github.com/seandinan/rex
babel expressjs nodejs react react-router webpack
Last synced: 2 months ago
JSON representation
Skeleton for Node/Express backend + React front-end + Babel/Webpack to bundle things up
- Host: GitHub
- URL: https://github.com/seandinan/rex
- Owner: seandinan
- Created: 2017-02-15T01:20:55.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-10-19T11:48:51.000Z (over 7 years ago)
- Last Synced: 2023-11-08T12:22:52.031Z (over 2 years ago)
- Topics: babel, expressjs, nodejs, react, react-router, webpack
- Language: JavaScript
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rex
Skeleton for Node/Express backend + React front-end + Babel/Webpack to bundle things up
## Setup
1. Fork this repo
- ```git clone https://github.com/seancdinan/rex.git ```
- ```git remote set-url origin ```
- ```git push -u origin master```
2. ```npm install``` to install dependencies
3. ```npm run dev``` to fire up [webpack](https://webpack.github.io/) (it'll continue to listen for changes).
4. ```npm run start``` to fire up the Express server on port 3000.
## Developing/Folder Structure
- Images and other static resources should go in ```/public/assets```
- Views should go in ```/public/html```. With react-router, just having ```index.html``` should be enough.
- Front-end code should go in ```/src```. It will compile to ```/public/js```. The ```pages``` folder should contain full pages (anything that gets routed to in ```entry.js```) while ```components``` should contain the parts that the pages are made up of.