Coder Social home page Coder Social logo

imeshpasinda / astronx Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 10.79 MB

This project utilizes the NASA API to provide users with information about various astronomical phenomena.

Home Page: https://astronx.netlify.app/

License: MIT License

JavaScript 92.90% HTML 2.80% CSS 4.30%
jwt-authentication mongodb nasaapi node-js chakra-ui-react jest-tests react

astronx's Introduction

React Frontend Application Using NASA APIs

This project utilizes the NASA API to provide users with information about various astronomical phenomena.

Features

  • Fetches data from the NASA API to display astronomy details.
  • Backend built with Node.js.
  • Frontend built with React and Chakra UI CSS framework.

NASA APIs Used

Astronomy Picture of the Day (APOD)

The Astronomy Picture of the Day (APOD) API provides a new astronomy-related image or photograph each day, along with a brief explanation written by a professional astronomer.

Earth

The Earth API allows users to retrieve satellite imagery and other data related to Earth observation missions conducted by NASA.

Mars Rover Photos

The Mars Rover Photos API provides access to photos taken by NASA's Mars rovers, including Curiosity, Opportunity, and Spirit. Users can browse photos by rover, sol (Martian day), and camera.

Getting Started

To get started with this project, follow these steps:

Backend Setup

  1. Clone the repository:

    git clone https://github.com/ImeshPasinda/AstronX.git
  2. Navigate to the backend directory:

    cd backend
  3. Install dependencies:

    npm install
  4. Set up MongoDB:

    • Install MongoDB on your machine if you haven't already.
    • Start MongoDB server.
  5. Configure MongoDB connection:

    • Create a .env file in the backend directory.

    • Add the MongoDB connection URI to the .env file. Example:

      MONGO="mongodb+srv://<username>:<password>@<cluster>/<database>"
      JWT_SECRET=<your_jwt_secret>
      
  6. Run the development server:

    npm run dev

Frontend Setup

  1. Navigate to the frontend directory:

    cd frontend
  2. Install dependencies:

    npm install
  3. Start the development server:

    npm start

Build Commands

Backend

To build the backend for deployment:

npm run build

Frontend

To build the frontend for deployment:

npm run build

Deployment

The application is deployed at: https://astronx.netlify.app/

astronx's People

Contributors

imeshpasinda 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.