🍻 A database for your brew.
Some things you may want to do before anything else. And by may, I mean definitely:
-
Run
bundle install
to install required dependencies -
Create a "
beerbase_dev
" database on your local postgres installation -
Create a
.env
file in theapi/
folder and add a Postgres connection string:echo 'DATABASE_URL=postgres://ur_1337_username@localhost:5432/beerbase_dev' > api/.env
-
Run
rake db:migrate
to run all necessary migrations
The client is powered by React Native.
-
Make sure Node.js version 6 or greater is installed (nvm recommended for managing Node.js versions in development).
-
react-native isn't compatible with
npm@5
. Make surenpm@4
is installed:$ npm install -g npm@4.6.1
-
Install client dependencies:
$ cd client $ npm install
To develop, change directories to client
and start a simulator:
$ npm run ios # (Mac only, requires Xcode)
$ npm run android # (Requires Android build tools)
You can also start the development server separately:
$ npm start