php artisan preset react && npm install && npm run dev
Reference https://www.npmjs.com/package/eslint-config-react-app
{ | |
"extends": ["react-app", "plugin:prettier/recommended"] | |
} |
npx create-react-app NewAppName | |
Get Prettier & ESLint set up | |
https://gist.github.com/kodeFant/37d80984f275cd1d3122fbf9868b0f7a | |
Add Reactstrap | |
https://reactstrap.github.io/ |
php artisan preset react && npm install && npm run dev
Reference https://www.npmjs.com/package/eslint-config-react-app
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
use App\Article; | |
use App\Http\Resources\Article as ArticleResource; | |
class ArticleController extends Controller | |
{ |
system_type=$(uname -s) | |
if [ "$system_type" = "Darwin" ]; then | |
# install homebrew if it's missing | |
if ! command -v brew >/dev/null 2>&1; then | |
echo "Installing homebrew" | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
fi | |
type RemoteData err data | |
= NotAsked | |
| Loading | |
| Failure err | |
| Success data |
type RemoteData<E, D> = | |
| { type: "NOT_ASKED" } | |
| { type: "LOADING" } | |
| { type: "FAILURE"; error: E } | |
| { type: "SUCCESS"; data: D }; | |
function foldRemoteData<R, E, D>( | |
remoteData: RemoteData<E, D>, | |
notAsked: () => R, |
# Edit this configuration file to define what should be installed on | |
# your system. Help is available in the configuration.nix(5) man page | |
# and in the NixOS manual (accessible by running ‘nixos-help’). | |
{ config, pkgs, ... }: | |
{ | |
imports = | |
[ # Include the results of the hardware scan. | |
./hardware-configuration.nix |
Archived content from the IHP with Elm series
This is just archived content from part 1 because IHP integrated this part of the tutorial into a boilerplate in the framework. It could be helpful to reference in case you want to set it up manually in an exisiting project.
Let's update .gitignore
as soon as possible to avoid pushing unwanted stuff into git.