Skip to content

dino-dna/brewbase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BrewBase

🍻 A database for your brew.

API setup

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 the api/ 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

Client

The client is powered by React Native.

Setup

  1. Make sure Node.js version 6 or greater is installed (nvm recommended for managing Node.js versions in development).

  2. react-native isn't compatible with npm@5. Make sure npm@4 is installed:

    $ npm install -g npm@4.6.1
  3. Install client dependencies:

    $ cd client
    $ npm install

Development

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

About

🍻 A database for your brew.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published