Owusu-Desmond / studiopost

studiopost is an application that allows users to create, edit, and delete posts. Users can also like, comment on posts and visit other users' profiles and see their posts.

Home Page:https://studiopost.onrender.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ“— Table of Contents

πŸ“– studiopost

studiopost is an application that allows users to create, edit, and delete posts. Users can also like, comment on posts and visit other users' profiles and see their posts.

πŸ›  Built With

Tech Stack

Client
Server
Database

Key Features

  • User authentication: Users can create an account, login and edit their profile.
  • CRUD operations: Users can create, read, update and delete posts.
  • Like and comment on posts: Users can like and comment on posts.

(back to top)

πŸš€ Live Demo

Live Demo Link

(back to top)

πŸ’» Getting Started

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

If you dont have Ruby installed on your computer, you can download it from here.

If you dont have Rails installed on your computer, you can download it from here.

If you dont have PostgreSQL installed on your computer, you can download it from here.

Prerequisites

  • Ruby: v3.1.2
  • Rails: v7.0.1
  • PostgreSQL: v14.5

Setup

If you have installed git you can clone the code to your machine, or download a ZIP of all the files directly.

Download the ZIP from this location, or run the following git command to clone the files to your machine:

  • Once the files are on your machine, open the blog-app folder in your code editor. Run the following command in your terminal to install the required gems and run the application:

  • Open the config/database.yml file in the project directory and change the username and password to your PostgreSQL username and password. Edit the default section of the file to look like this:

  default: &default
  adapter: postgresql
  encoding: unicode
  # For details on connection pooling, see Rails configuration guide
  # http://guides.rubyonrails.org/configuring.html#database-pooling
  pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
  username: <your PostgreSQL role username>
  password: <your PostgreSQL role password>

Install

NOTE: You may need to run this command in the project directory to install the required gems and run the application:

bundle install

Usage

To run the project, execute the following command:

  1. Create the database with:
rails db:create
  1. Run the migrations with:
rails db:migrate
  1. Start the development server with:
rails server
  1. Open the app in your browser at http://localhost:3000

Run tests

To run tests, run the following command:

  bundle exec rspec

Deployment

You can deploy this project using:

  1. Deplay to Heroku
  git push heroku main
  1. Or deploy to Render
  git push render main

(back to top)

πŸ‘₯ Author

πŸ‘€ Desmond Owusu Ansah

(back to top)

πŸ”­ Future Features

  • Allow users to follow other users
  • Notify users when they are followed or when followed users create a new post

(back to top)

🀝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

(back to top)

⭐️ Show your support

Write a message to encourage readers to support your project

If you like this project...

(back to top)

πŸ™ Acknowledgments

I would like to thanks Gregoire Vella on Behance the author of the original design,

(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

studiopost is an application that allows users to create, edit, and delete posts. Users can also like, comment on posts and visit other users' profiles and see their posts.

https://studiopost.onrender.com

License:MIT License


Languages

Language:Ruby 69.1%Language:HTML 29.1%Language:JavaScript 1.1%Language:SCSS 0.7%