This repo includes intial code for social media app with basic styling. Its purpose is to be a starting point for Microverse students.
- Ruby v2.7.2
- Ruby on Rails v6.0.3
- RubyMine
- GitHub
- Heroku
- PostgreSQL
- Rubocop
- Stylelint
To get a local copy up and running follow these simple example steps.
- Ruby: v2.7.2
- Rails: v6.0.3
- Postgres: >=9.5
Instal gems with:
bundle install
Setup database with:
rails db:create
rails db:migrate
Start server with:
rails server
Open http://localhost:3000/
in your browser.
rpsec --format documentation
List all posts
http://localhost:3000/api/v1/posts
List comments for given post
http://localhost:3000/api/v1/posts/:post_id/comments
To create comments you must first create a user, can create the user with the API.
http://localhost:3000/api/v1/users
Copy the provided token and paste it into Authorization section for Beaver Token
And finally can create a new comment with the POST method sending the comment as JSON
http://localhost:3000/api/v1/posts/:post_id/comments
- GitHub: @SunnySparks
- Twitter: @JosfranT6
- Instagram: @webdev.sunnydiaz
- Portfolio: sunnydiaz.com
- LinkedIn: LinkedIn
- Github: @Rocio01
- Twitter: @rugiada8801
- Linkedin: zulma-rocio-martinez
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a โญ๏ธ if you like this project!