Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sunny/all3dp
Ruby gem to send 3D files to Craftcloud, All3DP's 3D Printing Price Comparison Service API
https://github.com/sunny/all3dp
3d-printing api ruby-gem
Last synced: 2 months ago
JSON representation
Ruby gem to send 3D files to Craftcloud, All3DP's 3D Printing Price Comparison Service API
- Host: GitHub
- URL: https://github.com/sunny/all3dp
- Owner: sunny
- License: mit
- Created: 2018-04-28T11:01:55.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2021-04-30T08:04:47.000Z (over 3 years ago)
- Last Synced: 2024-10-09T22:03:48.863Z (2 months ago)
- Topics: 3d-printing, api, ruby-gem
- Language: Ruby
- Homepage:
- Size: 41 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# All3DP
Ruby gem to send 3D files to All3DP's
[Craftcloud](https://craftcloud3d.com/) 3D Printing Price Comparison
Service API.## Installation
Add these line to your application's Gemfile:
```rb
# Send 3D files to the All3DP API.
gem "all3dp"
```And then call:
```sh
$ bundle
```## Usage
Give URLs of STL files to the API:
```rb
configuration = All3DP::Configuration.create(
model_urls: ["http://wtf.sunfox.org/cults-logo.stl"],
)
```You can then redirect your users to the given URL:
```rb
configuration.url # => "https://app.craftcloud3d.com/configuration/f00b4r…"
```## Development
After checking out the repo, run `bin/setup` to install dependencies. Then,
run `rake` to run the tests and linter. You can also run `bin/console` for an
interactive prompt that will allow you to experiment with the API.## Release
To release a new version, update the version number in `version.rb`, update
the `CHANGELOG.md`, commit with a message like "v42.0.0", and then run
`bundle exec rake release`, which will create a git tag for the version,
push git commits and tags, and push the gem to
[rubygems.org](https://rubygems.org).## Contributing
Bug reports and pull requests are welcome on GitHub at
https://github.com/sunny/all3dp.This project is intended to be a safe, welcoming space for collaboration, and
contributors are expected to adhere to the
[code of conduct](https://github.com/sunny/all3dp/blob/master/CODE_OF_CONDUCT.md).## License
Licensed under the MIT License.