Giter Site home page Giter Site logo

beach-journal-backend's Introduction

Beach Journal

Beach Journal App

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.

Frontend

The frontend for the Beach Journal can be found here: https://github.com/Sdcrouse/beach-journal-client

Demo, Blog Post, and Mock Assessment

  • 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.

Installation

Follow these steps to get the backend up and running:

  1. Fork and clone this repository onto your own computer.
  2. Run bundle install to install the Ruby gems for this app.
  3. Run rails db:migrate to create the database.
  4. (Optionally), run rails db:seed to give your database some default data.

Usage

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.
  • Navigate to http://localhost:3000/rails/info/routes to see this project's available routes (or run rails routes in your terminal).
  • Exit the server by hitting Ctrl-C or Cmd-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.

Development Notes

  • 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.

Contributing

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.

LICENSE

Licensed under the MIT License.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.