https://github.com/0jonjo/beitrag
An Application for study purposes that allows users to: create and rate blog posts, and list posts by best rating and users by IP address.
https://github.com/0jonjo/beitrag
Last synced: 5 months ago
JSON representation
An Application for study purposes that allows users to: create and rate blog posts, and list posts by best rating and users by IP address.
- Host: GitHub
- URL: https://github.com/0jonjo/beitrag
- Owner: 0jonjo
- License: mit
- Created: 2025-04-24T12:11:11.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2026-02-04T11:22:19.000Z (5 months ago)
- Last Synced: 2026-02-04T23:42:46.124Z (5 months ago)
- Language: Ruby
- Homepage:
- Size: 269 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BEITRAG
It is an application for study purposes that allows users to: create and rate blog posts, and list posts by best rating and users by IP address. The German word 'Beitrag', meaning 'contribution', 'post', or 'article', captures the essence of the application.
Beitrag is built using Ruby on Rails and Postgres. It follows a Test-Driven Development (TDD) and Continuous Integration/Continuous Deployment (CI/CD) approach using GitHub Actions
## Installation
Clone the repository:
```shell
git clone git@github.com:0jonjo/beitrag.git
cd beitrag
```
Install dependencies:
```shell
bundle install
```
To development and tests, set username and password in `database.yml` as 'postgres'. After, start the database in container running:
```shell
docker run -d --name postgres-beitrag -e POSTGRES_PASSWORD=postgres -e POSTGRES_USER=postgres -p 5432:5432 postgres:latest
```
Create, migrate, and seed the database:
```shell
rails db:create
```
Serve the application:
```shell
rails server
```
Run tests:
```shell
rspec
```
To test a massive population of the database, start the application and then run:
```shell
rails db:seed
```
or
```shell
bash script/populate_db.sh
```