Skip to content

IngDavidTM/blog-app

Repository files navigation

David's project

📗 Table of Contents

📖 Blog App

This is an App which allows you to show the list of posts and empower readers to interact with them by adding comments and liking posts.

🛠 Built With

Tech Stack

Client
Database

Key Features

  • It contains four tables with a relation one to many
  • It allows to create user and post
  • It allows to comment and like a post
  • Add authentication with gem devise
  • Add autorization using Cancan -Implement APIs

(back to top)

🚀 Live Demo

  • Not available yet

(back to top)

💻 Getting Started

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

Prerequisites

In order to run this project you need:

gem install ruby
gem install rails
sudo apt-get install postgresql postgresql-contrib

Setup

Clone this repository to your desired folder:

  cd my-folder
  git clone git@github.com:IngDavidTM/blog-app.git

Install

Install this project with:

cd blog-app
bundle install

Create database

Add the username and password that you are using in psql to config/database.yml

Create and migrate the database with:

rails db:create
rails db:migrate

Usage

To run the project, execute the following command:

rails server

Run tests

To run tests, add this data to your database:

For users

Screenshot from 2023-01-31 13-01-10

For posts

Screenshot from 2023-01-31 13-00-40

For likes

Screenshot from 2023-01-31 13-00-10

For comments

Screenshot from 2023-01-31 12-59-30

Then, run the following command:

rspec

(back to top)

👥 Author

👤 David Tamayo

👤 Cesar Alberto Valencia Aguilar

(back to top)

🔭 Future Features

  • Add style and improve UX

(back to top)

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

(back to top)

⭐️ Show your support

If you like this project, kindly give a start to support a greater and widespread reach

(back to top)

🙏 Acknowledgments

I would like to thank Microverse.

(back to top)

❓ FAQ

  • Do I need node installed?

    • Yes you do
  • Do I need internet Access

    • Not necessary

(back to top)

📝 License

This project is MIT licensed.

NOTE: we recommend using the MIT license - you can set it up quickly by using templates available on GitHub. You can also use any other license if you wish.

(back to top)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published