https://github.com/oliverswitzer/status-diary
https://github.com/oliverswitzer/status-diary
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/oliverswitzer/status-diary
- Owner: oliverswitzer
- Created: 2017-06-06T18:28:16.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-06T18:28:53.000Z (about 8 years ago)
- Last Synced: 2025-02-15T20:21:04.387Z (4 months ago)
- Language: Ruby
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Running the app
**Database setup**
```
$ brew install postgres
$ brew services start postgres
```Create databases and grant privileges:
```
$ createuser postgres
$ createdb StatusDiary_dev
$ createdb StatusDiary_test$ psql -d template1
> \c StoryDiary_test
> GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO postgres;
> \c StoryDiary_dev
> GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO postgres;
```**Install dependencies for each gem**
```
$ cd status_diary
$ bundle install$ cd ../plugins/api
$ bundle install$ cd ../plugins/persistence
$ bundle install
```**Running the tests**
To run all tests at once
```
$ rake
```Or to run individually, within each package `plugins/api`, `plugins/persistence` or `status_diary`
run:```
bundle exec rspec
```