Clone repo git clone git@github.com:omahacodeschool/barcamp-scheduler.git
- Edit
.env.example
and rename to.env
bundle install
- Create database with
rake db:create
- Seed database with
rake db:seed
- Start the server with
rails s
You'll need to have npm
installed. On Mac with Homebrew brew install node
- In the react project root directory (
bc-front
), runnpm install
- Edit
app.config.js.example
and rename toapp.config.js
- Start the server with
npm start
- In browser navigate to
localhost:8080
If you need to test multi-computer interactions
- Figure out your computer's local IP (for this example we'll use
192.168.1.1
) - Edit
/bc-back/env
to readREACT_URL = 192.168.1.1:8080
(substitute your local IP) - Edit
/bc-front/app.config.js
to readmodule.exports = { api_url: 'http://192.168.1.1:3000' };
(substitute your local IP) - Stop your rails server and restart it with
rails s -b 0.0.0.0
it's now open to connections from your local network - Stop your react server, edit
/bc-front/package.json
. In the"scripts"
section, change"start:"
from"webpack-dev-server"
to"webpack-dev-server --host 0.0.0.0"
- Run
npm start
and your webpack/react server is now open to local connections - Anyone on your local network can access the application at
192.168.1.1:8080
in a browser (substitute your local IP)