“This is what I have learned, Malenfant. This is how it is, how it was, how it came to be.”
― Stephen Baxter, Manifold: Time
Help spread the word and share this project!
- Why Reactify Boilerplate
- Installing
- Configuring
- Customizing
- Testing
- Building
- Logging
- License
- Donate
- Contributing
- Contributors
Reinventing the wheel sucks. Reactify Boilerplate lets you get started with a solid foundation for new projects.
Reactify Boilerplate uses React (via Create React App) as a frontend framework.
Includes:
- Bootstrap 4 (via reactstrap)
- Bootswatch Themes
- React Router
- Redux
- React-Toastify
- FontAwesome
- Animate.css
- Particles.js
- Internationalization (via react-i18next)
- Local & Google OAuth login/signup
Reactify Boilerplate uses Restify as a backend server.
Includes:
- Mongoose
- Internationalization (via i18n)
- User login/signup is already implemented for you
For best results, you should have Yarn installed.
You'll probably want to use this repository as a template, then replace the clone URL and directory name below.
git clone https://github.com/mathiscode/reactify-boilerplate.git
cd reactify-boilerplate
yarn
cp .env.example .env
Edit .env
or set environment variables for server configuration
Edit client/src/config/site.js
for client configuration
Edit client/src/config/keys.js
for client-side API keys (eg. Google OAuth)
Edit/add client components in client/src/components
Edit/add server routes in server.js
(look for the comment // Setup routes
)
routes/users/index.js
has examples of how to include routes
See more guides in the Wiki
yarn dev # This will launch both the Restify server and the React development server.
# Complete:
yarn test
# Individually:
yarn lint
yarn test-server
yarn test-client
Once you've made some changes to the client, run:
yarn build
This will bundle the React app and place it into the server's /public directory.
Logs will output to the console if NODE_ENV is not production
In .env
or your environment variables, set:
LOG_FILE=filename.log
ERROR_LOG_FILE=errors.log
Log to Logz.io
In .env
or your environment variables, set:
USE_LOGZIO=true
LOGZIO_API_TOKEN=yourlogziotoken
Log to Loggly
In .env
or your environment variables, set:
USE_LOGGLY=true
LOGGLY_SUBDOMAIN=yourlogglysubdomain
LOGGLY_TOKEN=yourlogglytoken
LOGGLY_TAGS=mytag-1,mytag-2
Note: you may get a warning about the loggly module; this can be safely ignored.
This project is licensed under the MIT License - see the LICENSE.md file for details
-
Beerpay.io: https://beerpay.io/mathiscode/reactify-boilerplate
-
BTC: 3722p31ydjezmzbcepCf29DQ8tvjoLUPVB
-
OR: Donate some time by submitting a pull request!
Read the Contribution Guide
- J.R. Mathis (mathiscode)
- See the full list of contributors