A sample app made with React.
- Clone this repo using
git clone https://github.com/apehead/spotaroom.git
- Run
yarn install
ornpm install
to install dependencies
npm run start
Starts the development server and makes your application accessible at
localhost:3000
. Tunnels that server with ngrok
, which means the website
accessible anywhere.
To change the port the app is accessible at pass the --port
option to the command
with --
. E.g. to make the app visible at localhost:5000
, run the following:
npm start -- --port 5000
npm run test
Tests the application with the unit tests specified in the *test.js
files
throughout the application.
To choose the browser to run the unit tests in (Chrome by default), run one of the following commands:
npm run test:firefox
npm run test:safari
npm run test:ie
npm run test:watch
Watches changes in the application and reruns tests whenever a file changes.
npm run lint
Lints the code.
This project is based on the react-boilerplate (my favorite React boilerplate out there) that enforces best practices.
In addition to React, in this project I have also used:
- styled components for styling React components
- React Router as routing library
- Redux as state container
- Immutable and redux-immutable for immutability to increase efficiency
- redux-saga for handling side effects
- reselect, an efficient selector library for Redux
- React Intl for internationalization
- React Helmet as document head manager
Some of these tools have been used to learn and have fun, but not because of real application needs. The idea was to show an interesting application ready for production.
This project is under development.