Hey, it's nice to see you here!
This project is currently a simple image editor that uses external AI to add special powers to it.
Currently AI providers:
- OpenAI DALL-E
- Stability
Midjourney will be added as soon as they provide a public API
I'm also the author of Midjourney Ruby, a Ruby wrapper for the Midjourney service that I'll turn into a wrapper for their API once it's there.
You can find me at LinkedIn and Twitter/X.
The frontend is built with Vue.js and TailwindCSS. The backend is built with Rails and PostgreSQL.
It's not hosted anywhere yet, but you can run it locally.
Personally I enjoy running my servers manually but feel free to make a Procfile/Docker set up if you like!
- Clone the repo
- Install dependencies
cd client && npm install
cd server && bundle install
- Set up the database
cd server && rails db:setup db:seed
- Run the frontend server in one terminal
cd client && npm run dev
- Run the backend server
cd server && rails server
- Open
http://localhost:5173/
in your browser and enjoy! 🎉
You'll need to set up the environment variables for the backend to work with the AI providers if you want. Just create one account at Stability and/or OpenAI and look for their API Keys.
Feel free to open a PR or an issue if you find something that could be improved. At this point there are many features and improvements to be made, so I'll be happy to accept any help.
Please make sure tests are passing before opening a PR.
cd server # if you are not already there
bundle exec rspec # or just rspec if you have it installed globally
After running the tests you can check the coverage report at server/coverage/index.html
.
If you have the open command:
open server/coverage/index.html # or just coverage/index.html if you are already in the server folder
This will be in the CI pipeline soon, but for now you can run the following commands to check for code metrics.
cd server # if you are not already there
Then you can run any of the following commands to check for code metrics:
bundle exec brakeman
bundle exec rails_best_practices .
bundle exec rubocop
bundle exec rubycritic
MIT