by Jinook Jung
-
The backend of this app works best with Ruby 2.6.1 & Rails 6.1.3.1.
-
Visit my Github repository and clone the code to your local directory:
git clone https://github.com/jinook929/_flatiron_project5.git
.
- Enter into the _flatiron_project5/flatiron_project5_backend folder:
cd _flatiron_project5/flatiron_project5_backend
. - Execute
bundle install
and runrails s -p 5000
in terminal. (If you want to reset database, typerails db:drop db:migrate db:seed
.) - In a new terminal, move to the directory, _flatiron_project5/flatiron_project5_frontend folder:
cd _flatiron_project5/flatiron_project5_frontend
. - Then, execute the
npm install
. When installing is finished, runnpm start
(Note that you are automatically using port 3000 for frontend, whereas backend used 5000 above).
- You can either sign up for your own account or use the existing accounts to log in (2 users are pre-set:
user@users.com
&abc@users.com
[password for both is123
]). - Before logging in, you can see the Rule(=Home) page and High Scores page, but cannot play games.
- After logging in, you can play game, and visit profile page to check the basic user info and previous game records (+ your average score). To visit the Profile page, just click the account icon on the top right corner of the screen and choose Profile.
- During the game, the Deck of Cards API could have network issues. Then, please just click the HIGHER/LOWER button one more time.
- This is a hard game. See if you can pass more than 10 guesses right (which is 1000 points)!!!
t.string :email
t.string :password_digest
...
t.integer :score
t.integer :user_id
t.datetime :created_at
...
has_secure_password
has_many :games, dependent: :destroy
validates_presence_of :email, :password_digest
validates :email, uniqueness: { case_sensitive: false }
belongs_to :user
{user: null, highScores: []}
Bug reports and pull requests are welcome on GitHub at https://github.com/jinook929/_flatiron_project5. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
- Jinook Jung jinook929@gmail.com
© Jinook Jung
The app is available as open source under the terms of the MIT License.