https://github.com/emilyjspencer/bookmark-manager
https://github.com/emilyjspencer/bookmark-manager
postgresql ruby sinatra
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/emilyjspencer/bookmark-manager
- Owner: emilyjspencer
- Created: 2020-01-13T15:39:33.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-04-11T23:52:12.000Z (about 3 years ago)
- Last Synced: 2025-02-07T22:30:26.203Z (over 1 year ago)
- Topics: postgresql, ruby, sinatra
- Language: Ruby
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bookmark Manager
### Week 4 Project at Makers Academy.
We were tasked with building a bookmark manager that stores a collection of bookmarks as
URLs.
## User Stories
```
As a user,
So I can view my most-used websites,
I want to view a list of bookmarks
As a user,
So I can retrieve my most-used websites at a later date,
I want to to be able to store these websites
```
## Databases Setup
* **Connect to psql:**
```
brew install postgresql
brew services start postgresql
psql postgres
```
* **Create the database and test database:**
development database:
```html
CREATE DATABASE bookmark_manager;
```
test database:
```html
CREATE DATABASE bookmark_manager;
```
Connect to the database
```html
\c bookmark_manager;
```
Run the following migrations. which can be found in the db/migrations subfolder:
```html
CREATE TABLE bookmarks(id SERIAL PRIMARY KEY, url VARCHAR(60));
```
Repeat for the test database
### How to use:
**Clone this repository:**
```html
git clone https://github.com/emilyjspencer/Bookmark-Manager.git
```
**cd into the repo**
**Run**
```html
bundle install
```
**Start the server:**
```html
rackup
```
**Go to localhost:9292**
### How to run the tests:
```html
rspec
```
### Built with:
* Ruby
* Sinatra
* HTML/CSS
* SQL
### Tested with:
* RSpec
* Capybara
### What it looks like: