This is a Node.js application that fetches data from the Star Wars API (SWAPI) and displays it in a web interface.
- Docker
- Express.js
- Node.js
- Axios
- Clone the repository.
- Install dependencies using
npm install
.
To run the application using Docker, follow these steps:
-
Make sure you have Docker installed on your machine. If not, you can download it from https://www.docker.com/get-started.
-
Build the Docker image using the following command:
docker build -t my-star-wars-app .
Replace
my-star-wars-app
with the desired name for your Docker image. -
Once the image is built, you can run the Docker container using the following command:
docker run -p 3000:3000 my-star-wars-app
This will start the application, and you can access it in your browser at http://localhost:3000.
- Navigate to
/people
to view a list of Star Wars characters. - Navigate to
/films
to view a list of Star Wars films.