Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.
/ marvin Public archive

Opinionated React app boilerplate in TypeScript, based on CRA.

Notifications You must be signed in to change notification settings

workco/marvin

Repository files navigation

Marvin ⭑⭑ (deprecated)

Deprecation Notice

The first version of Marvin was released in 2016. After more than four years, we have taken the decision to deprecate it.

The React tooling landscape has changed significantly - for the better - since Marvin was first introduced. New platforms, libraries, developer utilities - this ecosystem continues to relentlessly evolve. Maintaining a single boilerplate to capture all these possibilities has become an unproductive endeavor.

This repository will remain available for posterity, but moving forward no new features will be added or maintenance taking place. You might want to check the Recommended Toolchains section on the official React website.

A big thank you to everyone who used, supported, and contributed to Marvin over the years.


v2.0.0

Documentation and some features are still WIP, but Marvin is ready for production apps. Please provide us feedback to make Marvin even better.

If you are looking for the old version, check v1.1 branch.

Marvin

React app boilerplate based on React Create App.

Marvin is internal project by Work & Co. We love React and open source. Marvin was born to be a starting point for our React projects.

Since first released, Marvin changed a lot and now it is a (thin) opinionated wrapper around official Create React App. It adds things like typescript support, hot module reload, router and others.

Name comes from a fictional character Marvin, android from the The Hitchhiker's Guide to the Galaxy book as a homage to it's author Douglas Adams.

Features

More features will be added in the future.

Setup

Marvin was tested on node version 12.x

Clone this repo and install dependencies:

npm install

Now run simple setup script:

node setup.js

It will take you through the short setup process. For now there are only a couple options to choose from:

  • SCSS support
  • Pre-Rendering Static HTML Files using react-snap
  • Git hooks (run linter on commit and run tests before push)

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

npm run eject

Note: this is a one-way operation. Once you eject, you can’t go back!

If you aren’t satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

Learn More

You can learn more in the Create React App documentation.