This project uses the SWAPI (Star Wars API) to display information about films, characters, vehicles, planets, starships, and species from the Star Wars universe.
Ensure that you have the following installed before proceeding:
- Node.js (version 14 or higher recommended)
- NPM (Node Package Manager)
- Docker (if running the project with Docker)
You can run the project locally using either NPM or Docker.
To run the project locally with npm, follow these steps:
-
Install Dependencies:
Run the following command to install all necessary packages:
npm install
-
Start the Development Server:
Run the following command to start the server:
npm run dev
-
Access the Application:
Once the server is running, open your browser and navigate to:
http://localhost:3000
Alternatively, you can run the project using Docker. Follow these steps:
-
Build the Docker Image:
Run the following command to build the Docker image for the project:
npm run docker:build
-
Run the Docker Container:
After building the image, run the Docker container with the following command:
npm run docker:run
-
Access the Application:
Once the container is up and running, open your browser and navigate to:
http://localhost:3000
- For any issues or questions, refer to the official SWAPI documentation to understand how the API functions.
- This project is set up to automatically restart the development server if any changes are made to the source files during local development.