This is the starting template for a Corndel training project to create a React Web Application which will display recent data from Mars obtained by NASA using NASA's Open APIs.
- Visual Studio Code
- Node.js - latest stable version
- NPM should be bundled with this
- React Developer Tools
cd
to the root directory of this repository.- Run
npm install
. - Open the project in VSCode.
- Install the recommended extensions.
- You can see these by running "F1 -> Show Recommended Extensions" in VSCode.
We'll be keeping track of the project tasks using Trello.
- Sign up for a Trello account.
- Ask your trainer to add you to the Mars App Board.
The workflow should be as follows:
- Assign yourself to a ticket from the "To Do" column in discussion with your trainer and move it to "In Progress".
- Pull the latest version of
master
. - Create a new branch with name of the form
${ticketNumber}_ShortDescription
- e.g.
MARS-2_CreateRoverComponent
- e.g.
- Write some code!
- Push to a remote branch on GitHub.
- Create a GitHub pull request for your ticket and request a pull request review from your trainer.
- Move the ticket to "In Review" in Trello.
- Once your trainer has reviewed your code:
- If there any changes needed, carry them out and push to GitHub again.
- Repeat until both you and the reviewer are satisfied with the code.
- Once your branch has been completely signed off, merge it into
master
and push. - Move the ticket to "Completed" and repeat!
In the project directory, you can run:
Runs the Mars App in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
We're hosting our app using Firebase Hosting.
To get set up with Firebase:
- Sign into the Firebase Console and let your trainer know the email address you use to log in.
- Install the Firebase CLI globally by running
npm install -g firebase-tools
.
Remember to confirm with your trainer before deploying anything to Firebase
- Build the project by running
npm run build
. - Deploy to Firebase by running
firebase deploy
.
This project was bootstrapped with Create React App.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.