Skip to content

leom806/ai-image-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Logo

AI Image Editor

GitHub license coverage

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.

Tech Stack

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.

Running locally

Personally I enjoy running my servers manually but feel free to make a Procfile/Docker set up if you like!

  1. Clone the repo
  2. Install dependencies
  • cd client && npm install
  • cd server && bundle install
  1. Set up the database
  • cd server && rails db:setup db:seed
  1. Run the frontend server in one terminal
  • cd client && npm run dev
  1. Run the backend server
  • cd server && rails server
  1. 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.

Contributing

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

Code Metrics

This will be in the CI pipeline soon, but for now you can run the following commands to check for code metrics.

Server
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

License

MIT

About

A fully fledged image editor powered with AI - Work in Progress

Resources

License

Stars

Watchers

Forks

Releases

No releases published