This is a Ruby on Rails API application that serves as the backend for the StarWars Frontend. It provides a RESTful API to interact with the application's resources.
- Ruby (version 3.2.0)
- Ruby on Rails (version 7.1.0.alpha)
-
Clone the repository:
git clone https://github.com/vinibispo/starwars-backend.git
-
Install the dependencies:
bundle install
-
Set up the database:
rails db:setup
-
Start the server:
rails server
The API will be available at
http://localhost:8000
.
The API documentation can be found at API Documentation.
The following environment variables need to be configured:
RAILS_MASTER_KEY
: 72341bc95e2cd9c137050928cfb4f337
-
Run the tests:
bundle exec rails spec
- Fork the repository.
- Create a new branch for your feature or bug fix:
git checkout -b my-feature
. - Make the necessary changes and commit them:
git commit -am 'Add new feature'
. - Push the branch to your forked repository:
git push origin my-feature
. - Submit a pull request on the original repository.
This project is licensed under the MIT License.
- Your Name: Vinícius Bispo
Feel free to reach out with any questions or feedback.