Merge branch 'staging' into 9th-anni-updates

This commit is contained in:
Justin Edmund 2023-03-15 02:42:45 -07:00 committed by GitHub
commit 3c4b39287c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 13 deletions

View file

@ -1,24 +1,40 @@
# README # hensei-api
This README would normally document whatever steps are necessary to get the **hensei-api** is the backend for [granblue.team](https://app.granblue.team/), an app for saving and sharing teams for [Granblue Fantasy](https://game.granbluefantasy.jp).
application up and running.
Things you may want to cover: **Please note that these instructions are a work-in-progress!**
* Ruby version ### Installing Ruby
* System dependencies You'll need to install ruby-3.0.0. We recommend using [RVM](https://rvm.io/) and creating a gemset to manage your Ruby installation. Before proceeding, install the GPG keys from the official RVM website.
* Configuration ```
\curl -sSL https://get.rvm.io | bash -s stable
rvm install ruby-3.0.0
rvm use 3.0.0@granblue --create
```
* Database creation ### Installing dependencies
* Database initialization After cloning the repo, install the project dependencies with:
* How to run the test suite ```
bundle install
```
* Services (job queues, cache servers, search engines, etc.) ### Creating the database
* Deployment instructions Once the dependencies have been installed, you'll need to create and seed the database. Seed data is provided but may not be up-to-date!
* ... ```
rails db:create
rails db:migrate
rails db:seed
```
### Running the server
Then, you can start the server with:
```
rails server
```

View file

@ -114,6 +114,9 @@ ActiveRecord::Schema[7.0].define(version: 2023_03_11_092812) do
t.string "notes_en" t.string "notes_en"
t.string "notes_jp" t.string "notes_jp"
end end
create_table "data_migrations", primary_key: "version", id: :string, force: :cascade do |t|
end
create_table "favorites", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t| create_table "favorites", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.uuid "user_id" t.uuid "user_id"