- 📖 About the Project
- 💻 Getting Started
- 👥 Authors
- 🔭 Future Features
- 🤝 Contributing
- ⭐️ Show your support
- 🙏 Acknowledgements
- 📝 License
[Blog-app-rails] is a classic example of a blog website. A fully functional website that will show the list of posts and empower readers to interact with them by adding comments and liking posts.
Client
Server
Database
Describe between 1-3 key features of the application.
- [Process data in models]
- [Controllers specs]
- [Add Post]
- [Register User]
- [Like Post]
- [Add API endpoints]
In order to run this project you need:
gem install rails
Using the terminal clone this repository to your desired folder (my-folder) and open it with VSCode:
cd my-folder
git clone https://github.com/MarcoOquendoC/Blog-app-rails.git
cd Blog-app-rails
code .
First we need to configure the database, (we used dotenv-rails gem).
create a file called .env
in the root with the following content:
Note: Change the right side of = in each line to match your correct postgresql password and username. The content should look like this:
PG_HOST = 5432
PG_USERNAME = postgres
PG_PASSWORD = yourpassword
PG_DB_DEV = blog-development
PG_DB_TEST = blog-test
Using the console install this project with:
bundle install
rails db:create
rails db:migrate
rails db:seed
rails tailwindcss:build
To run the project, execute the following command:
rails s
To run tests, run the following command:
bin/rails test test/models/comment_test.rb
bin/rails test test/models/like_test.rb
bin/rails test test/models/post_test.rb
bin/rails test test/models/user_test.rb
- GitHub: @MarcoOquendoC.
- Twitter: @marcooquendoc.
- LinkedIn: Marco Vinicio Oquendo.
- GitHub: @Miliyonayalew
- Twitter: @Miliyonayalew
- LinkedIn: Miliyonayalew
- [Deploy]
- [Add search]
- [improve user interfase]
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
If you like this app, here is a hint. I love stars 🤩.
I would like to thank:
- Microverse
- Code Reviewers
- Michael Mesfin
This project is MIT licensed.