Our Solar System is a back-end application that provides information about the planets and their respective moons in our solar system. This simple and educational app serves as the foundation for building a full-stack application with a front-end interface to display celestial data to users
- Data about planets and their moons
- Separate JSON files for planets and moons
- Node.js-based back-end for serving data
To get started with the "Our Solar System" back-end app, follow these steps:
- Node.js installed on your system.
-
Clone the repository to your local machine:
git clone https://github.com/yourusername/our-solar-system-backend.git
-
Install the required dependencies:
npm install
-
Start the back-end server:
npm start
-
Start the front-end server:
cd into the client-side folder
npm run dev
** You will need to create a .env file in the config folder to store your PORT and DB_STRING
The server will be running at http://localhost:5500.
The app provides API endpoints to access information about planets and their moons. You can make HTTP requests to these endpoints to retrieve data in JSON format.
planets.json
: Contains information about each planet in our solar system with a reference to their respective moons.moons.json
: Contains information about the moons orbiting each planet.
Feel free to expand the data or modify it to include additional information as needed.