Running the application
For this Lab, you will use CodeSandbox as your development environment. CodeSandbox is an online code editor and prototyping tool that makes creating and sharing web apps faster.
Create a CodeSandbox account​
Start by creating a free CodeSandbox account if you don't have one already.
You can create a CodeSandbox account by clicking on the "Try for Free" button in the top right corner of the CodeSandbox website.
Follow the instructions to create your account.
Open the Search Lab sandbox​
There is a small bug with CodeSandbox that prevents you from forking the repository if you don't already have an account. Make sure the follow the instructions in the previous step before continuing.
Once you have created your CodeSandbox account, you can open the Search Lab sandbox by clicking on the following link:
Fork the sandbox​
Once the sandbox is open, you will need to create a new branch so that you can save your changes.
To create the new branch, click the "Create Branch" button in the top right corner of the screen.
Once you have your branch, you will be able to start running the Lab.
Explore​
Take a few minutes to explore the application.
From the left navigation bar, you will see two folders: "client" and "server".
The "client" folder contains the React application that you will be using. If you aren't familiar with React, don't worry as you shouldn't need to make any changes here.
The "server" folder contains the Node.js server. This is where you will be making changes to implement the Atlas Search queries.
The server has a controller that is responsible for handling the search requests. The controller is located in the "server/controllers/movies.js" file.
This file is where you will make your changes.
Run the application​
The CodeSandbox is configured to install the required dependencies and start the application automatically.
Both the server and the client should have started, and you should see the demo application. However, the application won't work just yet.