Dreams are a human thing. Or so we believe ;)
This simple web app will pick a random image from the Metropolitan Museum of Art Collection API (https://metmuseum.github.io/) and pass it to the DeepAI API (https://deepai.org/) that will use it to generate a "dream".
Weird stuff ahead ;)
Original idea by miplayer1 (https://github.com/miplayer1)
- clone project
git clone [email protected]:Letitbe133/metmuseum.git
- cd into project folder
cd met metmuseum
-
edit
env.example.local
with your DeepAI api key && rename file to.env.local
Get your free DeepAI api key by creating a free account here : https://deepai.org/
VUE_APP_API_KEY = YOUR_API_KEY
- install project dependencies
npm install
- start dev server
npm run serve
- once project is ready for production run
npm run build
This will create a dist/
folder containing production ready files that you can ssh
or ftp
to your production server
Tip : if your project needs to be installed in a sub folder on your server (eg: http://example.com/project_folder
), make sure to edit vue.config.js
accordingly :
publicPath: process.env.NODE_ENV === "production" ? "/project_folder/" : "/",
// default is "/"