derrick1451 / Search_app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Search App

A realtime search application where you can search for articles.

Built With

  • Languages & Technologies:
    • Ruby on Rails
    • Postgres
    • Devise
    • JavaScript
    • HTML & Sass
  • Conventions and Methodologies:
    • BEM

Live Demo

Link to live democoming soon

Note: Unfortunately, it wasn't possible to deploy on Heroku or Render as they ended the free tier

Getting Started

To get a local copy up and running follow these simple example steps.

Prerequisites

Setup

Download the code from this repository, by following these two steps:

  • Click on the Code button, above the files list.
  • Click on the Donwload ZIP button to download the code.

Install

1- Install the project dependencies

1.1- Install the Ruby Bundler using this command on the root project's directory:

$ gem install bundler

1.2- Then, install all the project dependencies using this command:

$ bundle install

2- Set up the project's database

2.1- If you have Docker installed in your computer, create a Postgres image from the Dockerfile in this project using this command on the root project's directory:

$ docker build -t pg-db .

2.2- Create and run a new Docker container using the Postgres image created in the last step:

$ docker run --name rails-blog-db -p 5432:5432 -d pg-db

3- Build the project's database schema

3.1- Run the database migrations to build the project's database with the correct tables:

$ rails db:migrate

3-2- Populate the application with sample data:

$ rails db:seed

Usage

To use this application, run this command on the root project's directory:

$ rails s

Tests

To run unit and integration tests, run this command on the root project's directory:

$ rspec

Authors

👤 Okongo Derrick

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

📝 License

This project is MIT licensed.

About


Languages

Language:Ruby 74.2%Language:HTML 15.0%Language:JavaScript 3.8%Language:Dockerfile 3.5%Language:CSS 3.1%Language:Shell 0.4%