https://github.com/ruthmoog/makers_daily-diary
A web app for keeping your daily entries in a diary
https://github.com/ruthmoog/makers_daily-diary
Last synced: about 2 months ago
JSON representation
A web app for keeping your daily entries in a diary
- Host: GitHub
- URL: https://github.com/ruthmoog/makers_daily-diary
- Owner: ruthmoog
- Created: 2019-06-22T14:59:30.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2023-08-31T16:04:32.000Z (over 1 year ago)
- Last Synced: 2025-02-11T11:42:21.289Z (3 months ago)
- Language: Ruby
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Daily Diary
A diary web app for recording diary entries daily.
## Description and Approach
This is an online 'Daily Diary' web application, built in [Ruby](https://www.ruby-lang.org/en/documentation/). I've used [Sinatra](http://sinatrarb.com/intro.html) to make a browser-based user interface, and [PostgreSQL](https://www.postgresql.org/docs/) to store diary entries in a database.
### User Stories
```
As a user
So that I can keep a daily diary
I want to be able to add a new Diary Entry
```### Domain Model

## Installation Instructions
1. Install [Ruby](https://www.ruby-lang.org/en/documentation/installation/) 2.6.3
0. In the terminal run `bundle install` to install the required gems## Database Set Up
tbc
## Testing
Run all feature tests and unit tests in the terminal with `rspec` from the root directory
```shell
$ rspecUser visits the Daily Diary
Index page displays textFinished in 0.01689 seconds (files took 0.93782 seconds to load)
1 example, 0 failures
```The code is linted with [Rubocop](https://github.com/rubocop-hq/rubocop) and customised with [Scaffolint](https://github.com/makersacademy/scaffolint)
```shell
$ rubocop
Inspecting 4 files
....4 files inspected, no offenses detected
```## Run the Application
You can run the app from the command line in the root directory with Ruby or a web server:
Run directly with Ruby:
```shell
$ ruby app.rb
```
Run with a web server, eg [Thin](https://github.com/macournoyer/thin)
```shell
$ gem install thin
$ thin start
```## Approach
This app is built with BDD using [Capybara](https://teamcapybara.github.io/capybara/).This project helped me reflect on learning from [Makers Academy](https://makers.tech/)'s week 4 course content, on using TDD and, OOD principles.