Skip to content

Repository files navigation

here_present_backend

Requirements

  • Frontend

  • With Docker

    • Docker
    • Docker compose
    • Postgres
    • Rails 6.x
    • Ruby 3.0.0

Quick Start

  1. create environment file - set credentials
  • cp config/application.example.yml config/application.yml
  • cp config/database.example.yml config/database.yml
  • cp docker-compose.example.yml docker-compose.yml
  1. docker-compose build -> build docker environment
  2. docker-compose up -> start docker environment
  3. docker exec -it here_present_api bash -> enter in docker container
  4. rails db:setup -> create tables and database updates
  5. rails db:migrate -> create tables and database updates
  6. rails db:seed -> populate database with real data
  7. rails db:populate_start -> populate database with fake data
  8. rails s -b 0.0.0.0 -> start server
  • http://localhost:3000/api/v1 -> api endpoint
  • http://localhost:3000/auth -> api auth endpoint

Documentation

Default users in db:populate

  • Email
    • user@default.com
  • password:
    • password1234

Contributing

  • Fork it
  • Write your changes
  • Commit
  • Send a pull request

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages