https://github.com/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.
https://github.com/owusu-desmond/studiopost
rspec-testing ruby-on-rails
Last synced: 4 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/owusu-desmond/studiopost
- Owner: Owusu-Desmond
- License: mit
- Created: 2022-12-01T21:31:28.000Z (over 3 years ago)
- Default Branch: dev
- Last Pushed: 2025-02-11T11:17:07.000Z (over 1 year ago)
- Last Synced: 2025-07-14T15:13:20.420Z (12 months ago)
- Topics: rspec-testing, ruby-on-rails
- Language: Ruby
- Homepage: https://studiopost.onrender.com
- Size: 177 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 📗 Table of Contents
- [📖 About the Project](#about-project)
- [🛠 Built With](#built-with)
- [Tech Stack](#tech-stack)
- [Key Features](#key-features)
- [🚀 Live Demo](#live-demo)
- [💻 Presentation](#presentation-link)
- [💻 Getting Started](#getting-started)
- [Setup](#setup)
- [Prerequisites](#prerequisites)
- [Install](#install)
- [Usage](#usage)
- [Run tests](#run-tests)
- [Deployment](#triangular_flag_on_post-deployment)
- [👥 Authors](#authors)
- [🔭 Future Features](#future-features)
- [🤝 Contributing](#contributing)
- [⭐️ Show your support](#support)
- [🙏 Acknowledgements](#acknowledgements)
- [❓ FAQ](#faq)
- [📝 License](#license)
**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.
- [Ruby](https://www.ruby-lang.org/en/)
- [Ruby on Rails](https://rubyonrails.org/)
- [PostgreSQL](https://www.postgresql.org/)
- [RSpec](https://rspec.info/)
Client
Server
Database
- **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.
[Live Demo Link](https://studiopost.onrender.com/)
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](https://www.ruby-lang.org/en/downloads/).
If you dont have Rails installed on your computer, you can download it from [here](https://rubyonrails.org/).
If you dont have PostgreSQL installed on your computer, you can download it from [here](https://www.postgresql.org/download/).
### 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](https://github.com/Owusu-Desmond/studiopost/archive/refs/heads/main.zip), or run the following [git](https://git-scm.com/downloads) 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:
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:
```sh
rails db:create
```
2. Run the migrations with:
```sh
rails db:migrate
```
3. Start the development server with:
```sh
rails server
```
4. Open the app in your browser at http://localhost:3000
### Run tests
To run tests, run the following command:
```sh
bundle exec rspec
```
### Deployment
You can deploy this project using:
1. Deplay to Heroku
```sh
git push heroku main
```
2. Or deploy to Render
```sh
git push render main
```
👤 **Desmond Owusu Ansah**
- Github [@Owusu-Desmond](https://github.com/Owusu-Desmond)
- Twitter [@DesmondOwusuDev](https://twitter.com/DesmondOwusuDev)
- LinkedIn [@desmond-owusu-ansah](https://www.linkedin.com/in/desmond-owusu-ansah-09274a223/)
- Dev.to [desmondowusudev](https://dev.to/desmondowusudev)
- [ ] **Allow users to follow other users**
- [ ] **Notify users when they are followed or when followed users create a new post**
Contributions, issues, and feature requests are welcome!
Feel free to check the [issues page](https://github.com/Owusu-Desmond/studiopost/issues).
> Write a message to encourage readers to support your project
If you like this project...
I would like to thanks [Gregoire Vella on Behance](https://www.behance.net/gregoirevella) the author of the original design,
This project is [MIT](./LICENSE) licensed.
_NOTE: we recommend using the [MIT license](https://choosealicense.com/licenses/mit/) - you can set it up quickly by [using templates available on GitHub](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). You can also use [any other license](https://choosealicense.com/licenses/) if you wish._