npm install create-react-app -g
create-react-app party
cd party
npm install sandpit --save
npm start
You can delete everything in src/index.js
and replace it with:
npm install create-react-app -g
create-react-app party
cd party
npm install sandpit --save
npm start
You can delete everything in src/index.js
and replace it with:
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width,initial-scale=1"> | |
<link rel="shortcut icon" href="/favicon.ico"> | |
<title>React App</title> | |
<link href="/static/css/main.9a0fe4f1.css" rel="stylesheet"> | |
</head> | |
<body> |
import React from 'react' | |
import ReactDOM from 'react-dom' | |
import { WebGLRenderer } from 'three' | |
import App from './App' | |
import './index.css' | |
const renderer = new WebGLRenderer({antialias: true}) | |
const rootEl = document.getElementById('root') | |
ReactDOM.render( |
# Before: | |
class ApplicationController < ActionController::API | |
end | |
# After: | |
class ApplicationController < ActionController::Base | |
end |
Running via Spring preloader in process 49455 | |
invoke devise | |
generate No need to install devise, already done. | |
invoke active_record | |
create db/migrate/20170228184603_devise_create_admin_users.rb | |
create app/models/admin_user.rb | |
invoke test_unit | |
create test/models/admin_user_test.rb | |
create test/fixtures/admin_users.yml | |
insert app/models/admin_user.rb |
config.middleware.use Rack::MethodOverride | |
config.middleware.use ActionDispatch::Flash | |
config.middleware.use ActionDispatch::Cookies | |
config.middleware.use ActionDispatch::Session::CookieStore |
# See https://help.github.com/ignore-files/ for more about ignoring files. | |
# dependencies | |
/node_modules | |
# testing | |
/coverage | |
# misc | |
.DS_Store |
heroku buildpacks:add heroku/nodejs --index 1 | |
heroku buildpacks:add heroku/ruby --index 2 |
web: bundle exec rails s |
web: cd client && PORT=3000 npm start | |
api: PORT=3001 && bundle exec rails s |