This repo is a code-along with the in-course project in the React Nanodegree program.
Most of the commits in this repository correspond to videos in the program.
-
Clone the project.
-
Install the dependencies.
npm install
- Start the development server.
npm run dev
-
Open your browser and navigate to the development server URL (e.g.,
http://localhost:5173
). -
Ensure that the Contacts app server is running to support the app's API calls.
To create a production-ready build of the project:
- Run the build command:
npm run build
- Serve the build locally to test:
npm run preview
- The app will be served at a local preview URL (e.g.,
http://localhost:4173
).
-
Starter Code: To access the starter code, checkout the
starter
branch:git checkout starter
Then start the application:
npm run dev
-
Finished Project: Simply start the application:
npm run dev
This project uses environment variables to configure the API URL. Create a .env
file in the project root with the following content:
VITE_CONTACTS_API_URL=http://localhost:5001
Update the URL as needed for your API setup.
Because this is a code-along project and the commits correspond to specific videos in the program, we will not be accepting pull requests.
If you believe that a major problem exists in the code, please open an issue to discuss the problem and potential resolution.
MIT