The Star Wars app is a full-stack application built with Node.js that provides an interactive interface for exploring Star Wars character data. The app leverages GraphQL to retrieve information about Star Wars characters from the Star Wars API and presents it in a user-friendly manner. Users can navigate through a list of characters, view their details, and enjoy a visually appealing interface with animated elements.
-
Clone the Repository
git clone https://github.com/mutebironald/starwars.git cd starwars
-
Install Dependencies
npm install
- Start the Server and App
npm run start
- Start in Development Mode
npm run dev
Running the application with docker
-
Ensure that docker is installed on your system, you can download and install it from the official website
-
Build the Docker Image for the Frontend
cd app
docker build -t starwars-frontend .
- Run the Docker Container for the Frontend
cd server
docker run -p 3000:3000 -d starwars-frontend
- Build the Docker Image for the Backend
docker build -t starwars-backend .
- Run the Docker Container for the Backend
docker run -p 4000:4000 -d starwars-backend
- access application on local
You can easily set up and run both the app and server containers using Docker Compose. Follow these steps:
-
Ensure you have Docker and Docker Compose installed on your system.
-
Navigate to the project's root directory in your terminal.
-
Run the following command to start the containers:
docker-compose up
-
access application on local