Welcome to the CanSat Ground Station project! This project aims to develop a comprehensive ground station for monitoring and controlling a CanSat mission using modern web technologies. In this introduction, we'll provide an overview of the key technologies and tools used in this project.
React is a popular JavaScript library for building user interfaces. It allows us to create reusable UI components and manage the state of our application efficiently. We're leveraging React to build the frontend interface of our ground station.
Vite is a fast and minimalist development server and build tool for modern web projects. It provides lightning-fast cold server start and instant hot module replacement (HMR) during development. We're using Vite to build and bundle our React application for production.
Redux is a predictable state container for JavaScript apps. It helps us manage the global state of our application and enables efficient data flow between components. We're using Redux for managing and transferring data within our ground station application.
Three.js is a popular JavaScript library used to create and display 3D graphics in the browser. We're utilizing Three.js to render and display the 3D model of the rocket within our ground station interface, providing users with a visual representation of the CanSat.
Storybook is an open-source tool for developing UI components in isolation for React, Vue, and Angular. It allows us to create and showcase interactive UI components independently from the application's business logic. We're using Storybook for unit testing our UI components, ensuring they function correctly and look as expected in various scenarios.
Before you can run the CanSat Ground Station project, you'll need to have Node.js installed on your system. Follow these steps to install Node.js:
- Windows and macOS:
- Visit the official Node.js website.
- Download the recommended version for your operating system.
- Follow the installation instructions provided on the website.
- Linux:
- You can install Node.js using a package manager like apt (Ubuntu/Debian) or yum (CentOS/RHEL). Here's an example using apt:
sudo apt update sudo apt install nodejs npm
- You can install Node.js using a package manager like apt (Ubuntu/Debian) or yum (CentOS/RHEL). Here's an example using apt:
- Verify installation:
- To verify that Node.js and npm (Node Package Manager) have been successfully installed, open a terminal or command prompt and run the following commands:
node --version npm --version
- These commands should display the installed versions of Node.js and npm, respectively.
- To verify that Node.js and npm (Node Package Manager) have been successfully installed, open a terminal or command prompt and run the following commands:
Once you have Node.js installed, you can clone the CanSat Ground Station repository to your local machine. Follow these steps:
- Open a terminal or command prompt.
- Navigate to the directory where you want to clone the repository.
- Run the following command to clone the repository:
git clone https://github.com/Gagan-Space/Cansat-Ground-Station.git
- Once the repository is cloned, navigate into the project directory:
Now you're ready to proceed with setting up and running the CanSat Ground Station project!
cd cansat-ground-station
Storybook provides a convenient way to develop and test UI components in isolation. Follow these steps to run tests using Storybook:
Before running Storybook, ensure that you have all the necessary dependencies installed. If you haven't already, install the project dependencies by running:
npm install
To start Storybook, run the following command in your terminal:
npm run storybook
This command will start the Storybook development server, and you should see output indicating that Storybook is running.
Once Storybook is running, you can access the Storybook UI by opening your web browser and navigating to http://localhost:6006
. This is the default address where Storybook runs locally.
Vite is a blazing-fast development server and build tool for web projects, including React applications. Follow these steps to run your React project using the Vite development server:
Navigate to your project directory using a terminal or command prompt, and install the necessary dependencies by running:
npm install
This command will install all the required dependencies listed in your package.json file, including Vite.
Once the dependencies are installed, you can start the Vite development server by running the following command:
npm run dev
This command will start the Vite development server, and you should see output indicating that the server is running. By default, Vite will serve your React application on http://localhost:3000
.