lemiffe / ai-streetview

This Street View Does Not Exist
1 stars 0 forks source link

This Street View Does Not Exist

A small website where you can guess a location based on images where at least half of the image has been generated by an AI generator such as DALL-E 2.

Getting started

npm install
npm run dev # Uses Rollup

Navigate to localhost:8080. Auto-reload on changes in the src/ folder should work by default.

Building and running in production mode

To create an optimised version of the app:

npm run build
npm run start

Using TypeScript

This template comes with a script to set up a TypeScript development environment, you can run it immediately after cloning the template with:

node scripts/setupTypeScript.js

Or remove the script via:

rm scripts/setupTypeScript.js

If you want to use baseUrl or path aliases within your tsconfig, you need to set up @rollup/plugin-alias to tell Rollup to resolve the aliases. For more info, see this StackOverflow question.

Development

Adding maps / images

Optimising images

Deploying to GH Pages

npm run build
git add .
git commit -m "deploy"
git push origin gh-pages --force
node ./deploy.js