Git Product home page Git Product logo

nasa-project's Introduction

NASA Project

NASA Project CI

This is a mono repo project based on NASA's dashboard with the launches information from 2006 to current date.

Features

  • Get all planets registered in the SpaceX API
  • Get all launches registered in the SpaceX API
  • Populate the project's database with the planets and launches from the SpaceX API
  • Get all launches from the project's database
  • Creates new launches in the project's database

Technologies

  • React v17
  • MongoDB
  • Node
  • Express
  • GH Actions
  • Docker
  • AWS

What I learned

  • How to create a mono repo project
  • How to create a CI/CD pipeline with GitHub Actions
  • How to create a Docker image (including the support for multi-stage builds and Mac M1 processors)
  • How to deploy a Docker image to Docker Hub
  • How to deploy a Docker image to AWS EC2 Instance

Requirements

Setup

  1. Clone the repo

    git clone [email protected]:AngelCruzL/nasa-project.git
  2. Create an .env file with the same variables as .env.example file, this needs to be inside the server directory.

  3. Install NPM packages

    npm install

Now you need decide if you want to run the project with Node or Docker approach. If it's the first one, you need to execute the following command:

npm run dev

If you want to run the project with Docker, you need to execute the following command:

docker-compose up

Or you can download the Docker image from Docker Hub:

docker pull angelcruzl/nasa-project

And then run the image:

docker run --restart=always -p 8000:8000 \
-e MONGO_URL="your-database-connection-uri" \
--platform linux/amd64 \
angelcruzl/nasa-project

The project will be running on http://localhost:8000

Build the image

If you want to modify the project and build the image, you need to execute the following command:

docker build . -t <your-docker-username>/<your-docker-custom-image-name> --platform linux/amd64

It's important to specify the platform because the Docker image is multi-arch, so it can be run on Mac M1 processors.

Deployment

nasa-project's People

Contributors

angelcruzl avatar

Stargazers

Roman avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.