JCembala / web-scraper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Web Scraper

This is a web scraper application built with Ruby and JavaScript. It uses PostgreSQL for the database and Redis for caching.

Prerequisites

  • Ruby 3.2.2

Setup

  1. Clone the repository to your local machine.
  2. Navigate to the project directory.
  3. Copy the .env.template file and rename the copy to .env.
  4. Update the .env file with your actual credentials and settings.
  5. You can run asdf install to install the Ruby version defined in the .tool-versions file.

Local Development

In local development, you can use Docker to run the PostgreSQL and Redis services.

First, run the following command to start the PostgreSQL and Redis services:

docker-compose up

This command will start the PostgreSQL and Redis services as defined in the docker-compose.yml file. Please ensure that the .env file is correctly set up with your database credentials and other environment variables.

Next, run the following command to create the database and run the migrations:

rails db:create db:migrate

After the database is set up, you can start the Rails server with the following command:

rails s

About

License:Apache License 2.0


Languages

Language:Ruby 76.1%Language:HTML 17.3%Language:JavaScript 3.8%Language:CSS 2.2%Language:Shell 0.6%