Welcome to AnbyNotes 🎉🎉🎉 This app is built using Rails 7 and is basically a ChatGpt wrapper: Users can create Notes where they can:
- Login or Sign up
- Enter a query, sentence or short paragraph
- Receive feedback or content from the AI chatbox based on their query
- Edit and style the content generted by the AI
Basic user authentication is available in this app. Visitors must have a valid account to use the app's service. If visitors were to try to paste the link to the feature i.e.: /posts/new, they will be immediately redirected to the Log in page Additionaly, any visitors who make use of the app's features without a valid account/token will be redirected to a warning page
The list of gems used in this app:
- simple-form: Template forms used to receive user input/query
- bulma-rails: This app uses the bulma css framework
- actiontext : Provide a rich-text editor so that users can style their notes
- devise : Manages user authentication
- ruby-openai: The OpenAI API used to power the copywriting feature of this app
Environmental variable and credentials: The app has 2 important credentials:
- secret_key_base
- OpenAI API Key
Sensitive credentials are managed using Rails' built in credentials manager. Both keys are saved in the encrypted credentials.yml file, to encrypt the file a separate key is saved in the master.key file which is not checked into this version control system for security purposes.