Rails API for the Trakr job application tracker.
- Ruby 3.3 (
brew install ruby@3.3) - PostgreSQL (
brew install postgresql@14andbrew services start postgresql@14)
Add Ruby to your shell (once):
echo 'export PATH="/opt/homebrew/opt/ruby@3.3/bin:$PATH"' >> ~/.zshrc
source ~/.zshrccd trakr-backend
bundle install
bin/rails db:create db:schema:loadSeed demo data (portfolio preview with sample jobs):
bin/rails db:seedDemo login is enabled when DEMO_MODE=true (default in development). Visitors are signed in as the seeded demo user automatically.
bin/rails serverAPI runs at http://localhost:3000 (e.g. GET /api/logged_in).
In the trakr repo, start the React app (npm start on port 8080). It proxies /api to this server via src/setupProxy.js.