Loading
Current section: app 14 exercises
lesson

Apps Without Preview - Problem

Learn how to work with apps that don't have a dev server or preview. These exercises require you to run scripts manually from the terminal, simulating real-world development workflows.

Loading lesson

Transcript

00:00 Okay, so we're on a new exercise step. So the first thing we always do, set to playground. And when we do, we're going to get this new user interface here that is a non-UI exercise. So some of our workshops have no preview. They have no dev script in the package.json.

00:18 If we come over here and take a look at this, this is just a very basic package.json with a very simple greet function and module right here. So this is actually pretty common for the testing modules where the thing that you're running is not actually a web app necessarily, and so you're just running unit tests or something. And in those cases, you actually want to be spending your time in the terminal, because that's where you typically are going to be running your tests is in the terminal. And so, or whatever other scripts. So in our case, we don't have any scripts at all.

00:53 So I can run node greet, and it says, hello, John. And so that's, you pretty much just look at the instructions, do whatever they tell you to. But this is a non-UI exercise. And so there's no way to start this app or anything like that because it doesn't have a diff script. So yeah, there you go.

01:10 It does still have a diff. It's not going to have a problem or solution tab because that also doesn't make any sense. But you will have a diff, so you can see where you're at, what changes you need to make. And of course, it does have the chat still. All right, so that is that.

01:25 Let's go ahead and go to the next page.