/starwars

Primary LanguageTypeScript

Star Wars App Setup

Node.js

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.

Getting Started

  1. Clone the Repository

    git clone https://github.com/mutebironald/starwars.git
    cd starwars
  2. Install Dependencies

npm install
  1. Start the Server and App
npm run start
  1. 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

Running with Docker Compose

You can easily set up and run both the app and server containers using Docker Compose. Follow these steps:

  1. Ensure you have Docker and Docker Compose installed on your system.

  2. Navigate to the project's root directory in your terminal.

  3. Run the following command to start the containers:

    docker-compose up
  4. access application on local