This repository includes an application with API endpoint for posts and Comments, as well as adding a session start functionality. Its purpose is to train Microverse students in API creation.
- Ruby v2.7.2
- Ruby on Rails v5.2.4
To get a local copy up and running follow these simple example steps.
Ruby: 2.7.2 Rails: 5.2.6 Postgres: >=9.5
Instal gems with:
bundle install
Setup database with:
rails db:setup
rails db:migrate
To make sure the linters' checks using Github Actions work properly, you should follow the next steps:
- On your recently forked repo, enable the GitHub Actions in the Actions tab.
- Create the
feature/branch
and push. - Start working on your milestone as usual.
- Open a PR from the
feature/branch
when your work is done.
Start server with:
rails server
Open http://localhost:3000/
in your browser.
rspec --format documentation
Tests will be added by Microverse students. There are no tests for initial features in order to make sure that students write all tests from scratch.
Use the token from the authorization response headers to sign in.
Body: {"user": {"name": "Yuvraj", "email": "[email protected]", "password": "abc123", "password_confirmation": "abc123"}}
Body: {"user": {"email": "[email protected]", "password": "abc123"}}
Header: { "Content-Type": "application/json", "Accept": "application/json", "Authorization": JWT token }
Header: { "Content-Type": "application/json", "Accept": "application/json", "Authorization": JWT token }
Header: { "Content-Type": "application/json", "Accept": "application/json", "Authorization": JWT token }
Header: { "Content-Type": "application/json", "Accept": "application/json", "Authorization": JWT token }
Header: { "Content-Type": "application/json", "Accept": "application/json", "Authorization": JWT token }
👤 Author Arístides José Molina Pérez
- GitHub: @aristides1000
- Twitter: @aristides_1000
- LinkedIn: aristides jose molina perez
👤 Author Yuvraj Manoo
- GitHub: @YuvrajM108
- Twitter: @YuvrajM108
- LinkedIn: Yuvraj Manoo
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
- Ariel Camus CEO Microverse: For letting us start this journey.
- Google: For letting us find crucial information in order to create this project.
This project is CC0-1.0 licensed.