The Measured Gazette API is an automated platform that uses LLM's to gather and generate unbiased news articles based on the latest events. The system queries online sources every 12 hours to create dynamic news stories.
- AI-powered content generation: Uses GPT to generate news articles from real-time event data.
- Real-time updates: Automatically fetches new information every 12 hours and generates new stories.
- REST API: Provides an API to query the stories and associated content.
-
Clone the repository:
git clone https://github.com/yourusername/measured-gazette-api.git cd measured-gazette-api
-
Install dependencies:
bundle install
-
Set up PostgreSQL:
Make sure you have PostgreSQL installed. If not, you can install it on Manjaro with:
sudo pacman -S postgresql
Initialize the PostgreSQL Database (if this is your first time setting it up):
sudo -iu postgres initdb --locale=en_US.UTF-8 -D /var/lib/postgres/data
Start the PostgreSQL Service:
sudo systemctl start postgresql
Enable PostgreSQL to Start on Boot (recommended):
sudo systemctl enable postgresql
-
Create the application database:
Run the following commands to set up the database:
rails db:create rails db:migrate rails db:seed
-
Set up secrets:
TODO
-
Start the Rails server:
rails server