Welcome to the Beach Journal app! This is my final project for the Flatiron School. It allows users to create and save beaches, as well as write journal entries for those beaches. This repository contains the backend API of the project.
The frontend for the Beach Journal can be found here: https://github.com/Sdcrouse/beach-journal-client
- Click Here to view a demo of the Beach Journal.
- Click Here to read my blog post about the Beach Journal.
- Click Here to watch the Beach Journal's mock assessment, which I did with other students.
Follow these steps to get the backend up and running:
- Fork and clone this repository onto your own computer.
- Run
bundle install
to install the Ruby gems for this app. - Run
rails db:migrate
to create the database. - (Optionally), run
rails db:seed
to give your database some default data.
To start the Rails server for the Beach Journal, run rails s
. Then, you can do any of the following:
- Navigate to
http://localhost:3000/api/v1/beaches
to view the serialized JSON for all of your saved beaches.- If you do this, I recommend installing the JSON Viewer Chrome extension to view your data in an easy-to-read format.
- Navigate to
http://localhost:3000/rails/info/routes
to see this project's available routes (or runrails routes
in your terminal). - Exit the server by hitting
Ctrl-C
orCmd-C
in your terminal.
Additionally, if you wish to play around with the saved data, run rails c
in your terminal; if you want a sandbox environment that won't save your changes, run rails c -s
. To exit the Rails console, hit Ctrl-D
or Cmd-D
.
- Ruby version: 2.6.1
- Rails version: 6.0.3.2
- Database: PostgreSQL
This API also makes use of the Rack CORS Middleware and Fast JSON API gems.
Please feel free to raise a new Issue on my repository if you have any problems with my app (installation, usage, bugs, etc), or if you have suggestions for a new feature. Pull requests are also welcome.
Contributors are expected to follow the project's code of conduct. This can be viewed in the CODE_OF_CONDUCT.md file.
Licensed under the MIT License.