You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: projects/create-a-doodle-gallery/create-a-doodle-gallery.mdx
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ I miss the days of the internet when people built cool stuff for the sake of mak
27
27
28
28
Here's a project tutorial that might help bring us back to these days - you'll be building a website where anyone can draw a doodle for a public virtual museum exhibit!
To make this project, we'll be using the classic web dev tools HTML, CSS, and JavaScript, and will be storing our drawings in [Supabase](http://supabase.com/).
33
33
@@ -71,7 +71,7 @@ We need to add API keys to our project for it to connect to our storage bucket -
71
71
72
72
Go to the API menu under Project Settings. Find your Project URL and API key. They should look something like this:
Then, answer the prompts as follows. You can name your project however you like. When prompted, pick `Vanilla` as your framework and `JavaScript` as your variant. Your terminal should look like this at the end of completing the steps:
This might look different depending on what kind of computer you're using — in my case, I'm on a Macbook. If you're struggling with Vite, you can check out our [Vite project tutorial](https://www.codedex.io/projects/create-a-react-app-with-vite)!
117
117
118
118
### Running your server
119
119
120
120
To start up a server with your webpage running, type `npm run dev` in the Terminal. It'll give you a URL that looks something like: `http://localhost:3000/` - but the numbers in the URL can vary. Copy the link and paste it in your browser, and you should see something like this:
@@ -383,7 +383,7 @@ We want our big gallery to load random drawings, so everyone's drawings have a s
383
383
384
384
Then we're going to add our batch of drawings to our marquee. If you don't know what a marquee is, it's a scrolling gallery, or set of text that seems to scroll infinitely!
We'll write out our function header for `repeatMarquee()`, limiting the number of drawings picked to 200. Our marquee has two rows, and if neither of them render, it'll stop the function through the `if` statement.
0 commit comments