This is a Rails API app for NativeAppTemplate-iOS/Android. To get started, clone the repository.
You'll need the following installed to run the template successfully:
- Ruby 3.3.5+
- Node.js v20.17+
- PostgreSQL 16+
- Libvips or Imagemagick -
brew install vips imagemagick - Overmind or Foreman -
brew install tmux overmindorgem install foreman- helps run all your processes in development
If you use Homebrew, dependencies are listed in Brewfile so you can install them using:
brew bundle install --no-upgradeThen you can start the database servers:
brew services start postgresqlFirst, edit config/database.yml and change the database credentials for your server.
Run bin/setup to install Ruby and JavaScript dependencies and setup your database and seed initial data to the database.
bin/setupReplace the IP address 192.168.1.21 with your localhost IP address in Procfile.dev and config/environments/development.rb.
To run your application, you'll use the bin/dev command:
bin/devThis starts up Overmind (or Foreman) running the processes defined in Procfile.dev. We've configured this to run the Rails server out of the box.
If you have an improvement you'd like to share, create a fork of the repository and send us a pull request.