Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dmijatovic/react-redux-router
Testing react with redux router
https://github.com/dmijatovic/react-redux-router
Last synced: 20 days ago
JSON representation
Testing react with redux router
- Host: GitHub
- URL: https://github.com/dmijatovic/react-redux-router
- Owner: dmijatovic
- Created: 2017-11-01T07:52:43.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-07T12:46:19.000Z (about 7 years ago)
- Last Synced: 2024-11-13T16:54:10.588Z (3 months ago)
- Language: CSS
- Size: 119 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# React test project
This project is created using create-react-app cli. After creating it **npm eject** is runned to extract definitions and node scripts from cli. Then support for scss files is added to webpack definitions.
## Folder structure
- **config**: holds all configurations defined by create-react-app cli. Here I added scss support into dev version of webpack.config file
- **public**: folder was created by cli and contains static contact (I presume)..
- **scripts**: create when cli eject function was runned. It holds all custom react cli scripts.
- **src**: where the source code of our app goes. I still need to think about how to structure files in here.
- **layout**: basic app layout components and styles, incl. variables, mixins etc.
- **firebase**: firebase classes here, maybe?## Environments
Environment variables are supported in build script by using .env file(s) **in the root of the project**. In this test I disabled source maps in production environment. For more information see ./config/env.js file and references to github pages. In addition there is more info at [create-react-app](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#adding-development-environment-variables-in-env).
## Development
```cmd
npm start
```## Builds
```cmd
npm run build
```It runs build.js node script. To serve build project you can use serve command (after serve is installed globaly) using npm.
```cmd
serve -s build
```