- GENERATE and REGENERATE Buttons
- Input Form
- Explain the benefits of using new and existing features: Everything on the page is very simple to understand and labeled appropriately.
- Explain the costs of using new and existing features: The pre-entered text in the input form gives the user an indication of how to use the website.
- Let people gather as much information as they want, and no more than they want: This is a single page webapp with an input form and a button so the user can gather all info just by looking at it.
- Keep familiar features available: There are no surprises when a button is clicked.
- Make undo/redo and backtracking available: Hit regenerate button any time to redo.
- Provide an explicit path through the task: The title at the top and pre-entered input text make usage clear.
- Provide ways to try out different approaches: The user can enter any text they want to get different jokes.
- Encourage tinkerers to tinker mindfully: The user is totally protected because there is nothing to tinker with except for inputting different text.
- Simplicity: The web app will be extremely simple and easy to understand because it will look familiar by resembling the google.com search page.
- Responsiveness: The web app will respond with either the generated dad joke or a timeout message after 15 seconds.
- Reusability: The Vue.JS web-framework will be used (in 100% of the project) to keep HTML and JavaScript code re-useable.
Partner's microservice should generate random topics, and this app will submit it to the ai dad-joke chat-bot for dad joke creation It should be in the form: noun location verb adverb could have a save button deploy node.js on ec2: https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/setting-up-node-on-ec2-instance.html use vue.js lifecycle hooks async created() to make api request to partner microservice to fill in the input form default text: https://vueschool.io/lessons/vue-3-component-lifecycle-hooks
EC2 instructions: wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash source .bashrc nvm install 18 --lts wsl: tar cf dad-joke.tar ./ai-chatbot wsl: scp -i ~/.ssh/bastion ./dad-joke.tar [email protected]:/home/ec2-user tar xf dad-joke.tar cd ai-chatbot nvm use 18 npm install npm run dev
Look at the Nuxt 3 documentation to learn more.
Make sure to install the dependencies:
# yarn
yarn install
# npm
npm install
# pnpm
pnpm install
Start the development server on http://localhost:3000
npm run dev
Build the application for production:
npm run build
Locally preview production build:
npm run preview
Check out the deployment documentation for more information.