Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Solar System Travel Guide - Alex, Axel & Lovisa #49

Open
wants to merge 208 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
208 commits
Select commit Hold shift + click to select a range
96d9649
added folders and files from flowchart model
Xikitita May 27, 2024
4960f61
added schema and model folders
Xikitita May 27, 2024
19e1780
Added schema and model for planets
Xikitita May 28, 2024
595d309
Added expresslistendpoint
Lovisaaberg May 28, 2024
a832d8a
Merge pull request #1 from Lovisaaberg/backend-schema-model
Xikitita May 28, 2024
f83d579
Merge branch 'main' into expressListEndpoints
Lovisaaberg May 28, 2024
842e941
Merge pull request #2 from Lovisaaberg/expressListEndpoints
Lovisaaberg May 28, 2024
d5040a8
Added .env file and mongourl
Lovisaaberg May 28, 2024
953956c
Merge pull request #3 from Lovisaaberg/mongo-url
Lovisaaberg May 28, 2024
790b9b5
Created schema/model for live feed
Lovisaaberg May 28, 2024
1db8a5a
Merge pull request #4 from Lovisaaberg/feed-schema
Lovisaaberg May 28, 2024
1b06d38
changed outcommented lines in app.jsx
Xikitita May 28, 2024
53d62cf
Merge pull request #5 from Lovisaaberg/calculator
Xikitita May 28, 2024
3a6e68a
added routs for planets (#6)
AHPIXI May 28, 2024
0b4b8ce
added endpoints for planets and planet search. Seeded json to database
Xikitita May 28, 2024
24c9c4c
Created route handlers for space feed
Lovisaaberg May 28, 2024
7581462
Merge pull request #7 from Lovisaaberg/route-handler-feed
Lovisaaberg May 28, 2024
33f0a51
removed import of json since the DB is seeded
Xikitita May 28, 2024
d1b878c
Merge branch 'main' into planet-routes-backend
Xikitita May 28, 2024
05cfe63
Merge pull request #8 from Lovisaaberg/planet-routes-backend
Lovisaaberg May 28, 2024
df0383a
Small changes after merge
Lovisaaberg May 28, 2024
040a90d
Seeded Spacefeed to database
Lovisaaberg May 29, 2024
1f2f034
Merge pull request #9 from Lovisaaberg/seed-data-spacefeed
Lovisaaberg May 29, 2024
f379a29
Moved seeding planets database
Lovisaaberg May 29, 2024
2cb3588
small change
Lovisaaberg May 29, 2024
e5e0345
Seeding databases
Lovisaaberg May 29, 2024
0b544e5
Merge pull request #10 from Lovisaaberg/seed-databases
Lovisaaberg May 29, 2024
0608ae6
Small change
Lovisaaberg May 29, 2024
d1b4eaa
fetch function in PlanetCards-component
Xikitita May 29, 2024
ef72231
Merge pull request #11 from Lovisaaberg/fetch-planets-frontend
Xikitita May 29, 2024
f970e08
updated function to fetch planets (#12)
AHPIXI May 29, 2024
05d3413
Implemented SpaceFeed component with Zustand for state management
Lovisaaberg May 29, 2024
f3f3d8e
Merge pull request #13 from Lovisaaberg/space-feed-frontend
Lovisaaberg May 29, 2024
4a4efa9
Error searching
Lovisaaberg May 30, 2024
5e6436b
Merge pull request #14 from Lovisaaberg/space-feed
Lovisaaberg May 30, 2024
f2e7bb6
Updated Planets
Lovisaaberg May 31, 2024
7bfb68f
Merge pull request #15 from Lovisaaberg/space-feed-fix
Lovisaaberg May 31, 2024
202a2f3
Added some error handling
Lovisaaberg May 31, 2024
0cf200c
working on fetching planets from data json (#16)
Xikitita May 31, 2024
b670b1a
added react-router-dom dependencies
Lovisaaberg Jun 1, 2024
e6c0892
small changes
Lovisaaberg Jun 1, 2024
dc67ddd
planet cards are in place. (#17)
Xikitita Jun 1, 2024
cf4b009
updated context file for carousel (#18)
AHPIXI Jun 1, 2024
7d242bb
all object entries are working in planet components (#19)
Xikitita Jun 2, 2024
1549ca4
updated jsx file for carousel (#20)
AHPIXI Jun 2, 2024
8fa3706
updated carousel (#21)
AHPIXI Jun 2, 2024
45204e9
liveshare and demos
Xikitita Jun 3, 2024
53db2d0
Small changes to fix feed
Lovisaaberg Jun 3, 2024
1b884ec
Merge branch 'main' into space-feed-fix
Lovisaaberg Jun 3, 2024
0090f2a
Merge pull request #22 from Lovisaaberg/space-feed-fix
Lovisaaberg Jun 3, 2024
4d3e5a3
created planet link list for planet component and rearranged routes t…
Xikitita Jun 3, 2024
601d07c
removed planet routes file
Xikitita Jun 3, 2024
88bbeff
removed planet routes file (#24)
Xikitita Jun 3, 2024
9b2807f
Merge branch 'main' of https://github.com/Lovisaaberg/project-final
Xikitita Jun 3, 2024
577ad76
Added route for 404 page
Lovisaaberg Jun 3, 2024
f6d031b
Sun moon backend (#26)
Xikitita Jun 3, 2024
1d8344d
Merge branch 'main' of https://github.com/Lovisaaberg/project-final
Xikitita Jun 3, 2024
e5a80e9
Merge conflict
Lovisaaberg Jun 3, 2024
e67076b
Merge pull request #25 from Lovisaaberg/404-page
Lovisaaberg Jun 3, 2024
133123b
Merge conflict fix
Lovisaaberg Jun 3, 2024
b34f612
Animatio 404
Lovisaaberg Jun 3, 2024
41b1dd0
Sun moon frontend (#27)
Xikitita Jun 3, 2024
df581ef
Images added to assets
Lovisaaberg Jun 3, 2024
5750632
Merge pull request #28 from Lovisaaberg/pictures
Lovisaaberg Jun 3, 2024
5509266
Merge branch 'main' of https://github.com/Lovisaaberg/project-final
Xikitita Jun 4, 2024
875aa34
Sun moon model & endpoints (#29)
Xikitita Jun 4, 2024
e4a1275
Set up NavLinks for menu
Lovisaaberg Jun 4, 2024
a793d50
Merge pull request #30 from Lovisaaberg/navbar-branch
Lovisaaberg Jun 4, 2024
9160f6f
Connected navbar to routes
Lovisaaberg Jun 4, 2024
ee303bb
Merge pull request #31 from Lovisaaberg/navbar-branch
Lovisaaberg Jun 4, 2024
d5893e6
new carousel (#32)
AHPIXI Jun 5, 2024
d4ea764
Merge branch 'main' of https://github.com/Lovisaaberg/project-final
Xikitita Jun 5, 2024
42c0d9b
Carousel fix (#33)
Xikitita Jun 5, 2024
9c352de
Merge branch 'main' of https://github.com/Lovisaaberg/project-final
Xikitita Jun 5, 2024
6a2e2cc
updated carousel (#34)
AHPIXI Jun 5, 2024
1d3adc9
Merge branch 'main' of https://github.com/Lovisaaberg/project-final
Xikitita Jun 5, 2024
2a1b195
added links to planet images (#35)
AHPIXI Jun 5, 2024
14115ee
Added breadcrumbs to header for better navigation
Lovisaaberg Jun 5, 2024
0913491
Merge pull request #36 from Lovisaaberg/breadcrumbs
Lovisaaberg Jun 5, 2024
896e6ca
Sun moon components (#37)
Xikitita Jun 5, 2024
ef31395
Deleted link to home in planets
Lovisaaberg Jun 5, 2024
fc14813
Merge branch 'main' of https://github.com/Lovisaaberg/project-final
Xikitita Jun 5, 2024
e4b644f
Sun moon (#38)
Xikitita Jun 5, 2024
3cd6d49
changed code structure in models to make it consistent
Xikitita Jun 5, 2024
1de24f1
Merge branch 'main' of https://github.com/Lovisaaberg/project-final
Xikitita Jun 5, 2024
e88ba5f
updated carousel (#39)
AHPIXI Jun 5, 2024
71d02bd
picking data from json in sun & moon components (#40)
Xikitita Jun 5, 2024
794361d
Started to add fonts to components (#41)
Xikitita Jun 6, 2024
f38ec4f
added divs for styling (#42)
Xikitita Jun 6, 2024
51cda35
fixed routes to fetch celestial data (#43)
Xikitita Jun 6, 2024
ed1bbf7
refactored json data in backend (#44)
Xikitita Jun 6, 2024
22c4b19
refactured sun/moon component to fit new data keys (#45)
Xikitita Jun 6, 2024
a659bf1
added reusable Button (#46)
Xikitita Jun 6, 2024
a86a8a9
added sun & moon images to components (#47)
Xikitita Jun 6, 2024
f2bbf97
Planet imgs (#48)
Xikitita Jun 6, 2024
b9dc1ad
added sun and moon to carousel (#49)
AHPIXI Jun 7, 2024
59ae2fd
Added global styles
Lovisaaberg Jun 7, 2024
b1ba173
Merge branch 'main' into styling-branch
Lovisaaberg Jun 7, 2024
d2b05ea
Merge pull request #50 from Lovisaaberg/styling-branch
Lovisaaberg Jun 7, 2024
a1c7216
Styling and scroll added to feed
Lovisaaberg Jun 7, 2024
964fc1f
Merge pull request #51 from Lovisaaberg/styling-branch
Lovisaaberg Jun 7, 2024
a36d34d
Added styling to feed
Lovisaaberg Jun 7, 2024
158c74c
Merge pull request #52 from Lovisaaberg/fix-feed
Lovisaaberg Jun 7, 2024
8a0e0f1
Deleted button
Lovisaaberg Jun 7, 2024
f26f789
links for sun and moon carousel (#53)
AHPIXI Jun 8, 2024
9951737
Styling to menu
Lovisaaberg Jun 8, 2024
394e8f3
Merge pull request #54 from Lovisaaberg/styling-menu
Lovisaaberg Jun 8, 2024
6342aac
Styling to breadcrumbs
Lovisaaberg Jun 8, 2024
019bb84
Merge pull request #55 from Lovisaaberg/breadcrumbs-styling
Lovisaaberg Jun 8, 2024
1f18456
Added characters left
Lovisaaberg Jun 8, 2024
26520ac
Merge pull request #56 from Lovisaaberg/styling-feed
Lovisaaberg Jun 8, 2024
88db518
Added landing page and some restructure
Lovisaaberg Jun 9, 2024
defe4d6
Merge pull request #57 from Lovisaaberg/re-structure
Lovisaaberg Jun 9, 2024
26d11f4
New object entries (#58)
Xikitita Jun 9, 2024
d5f51fe
Added useRef to massConverter and styling
Lovisaaberg Jun 9, 2024
90bc00d
Added margin
Lovisaaberg Jun 9, 2024
5b1b722
Merge pull request #59 from Lovisaaberg/converter-branch
Lovisaaberg Jun 9, 2024
447eb55
Added links as images for prev/next function (#60)
Xikitita Jun 9, 2024
bce9a04
Styling to planet cards
Lovisaaberg Jun 9, 2024
0bcf133
Merge branch 'main' into planet-styling
Lovisaaberg Jun 9, 2024
4d87c84
Merge pull request #61 from Lovisaaberg/planet-styling
Lovisaaberg Jun 9, 2024
a47f91f
fixed PlanetNavigation
Xikitita Jun 10, 2024
f7f5743
updated tellus array name (#62)
AHPIXI Jun 10, 2024
d676d39
removed fonts.jsx
Xikitita Jun 10, 2024
7ef4d6f
Merge branch 'main' of https://github.com/Lovisaaberg/project-final
Xikitita Jun 10, 2024
99e0dab
Logo added
Lovisaaberg Jun 10, 2024
ae397b0
Merge pull request #63 from Lovisaaberg/logo
Lovisaaberg Jun 10, 2024
32b7866
Remade changes to carousel
Lovisaaberg Jun 10, 2024
0a75ae6
Merge branch 'main' of https://github.com/Lovisaaberg/project-final
Xikitita Jun 10, 2024
820fe97
styled saturn image to fit carousel
Xikitita Jun 10, 2024
1941dbf
Saturn img (#64)
Xikitita Jun 10, 2024
fe9e950
fixed merge conflict
Xikitita Jun 10, 2024
3b16228
styled saturn images in PlanetNavigation component (#65)
Xikitita Jun 10, 2024
834f728
updated error handling (#66)
AHPIXI Jun 10, 2024
96d388c
Celestial styling (#67)
Xikitita Jun 10, 2024
2fb6b35
styling on planets
Lovisaaberg Jun 10, 2024
8e7971c
Merge branch 'main' into stylingplanets
Lovisaaberg Jun 10, 2024
5815e83
Merge pull request #68 from Lovisaaberg/stylingplanets
Lovisaaberg Jun 10, 2024
4098410
re-installed cors and corrected import of planets (#69)
Xikitita Jun 11, 2024
d6330eb
cleaned up some code (#70)
AHPIXI Jun 11, 2024
54fd05c
restored erased image prop in PlanetNavigation-component (#71)
Xikitita Jun 11, 2024
0d38a02
added reusable button (#72)
AHPIXI Jun 11, 2024
2bc3ad1
Dropdown mobile view under construction (#73)
Xikitita Jun 11, 2024
e01d3e5
added &:active color for button
Xikitita Jun 11, 2024
815f271
Dropdown menu for mobile finished
Xikitita Jun 11, 2024
41986f4
Dropdown finished (#74)
Xikitita Jun 11, 2024
7c96bc4
Merge branch 'main' of https://github.com/Lovisaaberg/project-final
Xikitita Jun 11, 2024
3e7b588
Commits ahead (#75)
Xikitita Jun 11, 2024
afc10c3
Merge branch 'main' of https://github.com/Lovisaaberg/project-final
Xikitita Jun 11, 2024
0615dc2
404 (#76)
Xikitita Jun 11, 2024
666db1d
Merge branch 'main' of https://github.com/Lovisaaberg/project-final
Xikitita Jun 11, 2024
e10a4e3
placed 404 back in HomeRoutes
Xikitita Jun 11, 2024
36e35ad
Added toml file
Lovisaaberg Jun 11, 2024
a617bb5
Merge branch 'main' into Allplanets-Styling
Lovisaaberg Jun 11, 2024
2bb9da2
Merge pull request #77 from Lovisaaberg/Allplanets-Styling
Lovisaaberg Jun 11, 2024
f1bddae
Run build
Lovisaaberg Jun 11, 2024
bdd2ea7
refactored routes to manage fallback page
Xikitita Jun 11, 2024
1f8d212
refactored routes to manage fallback page (#78)
Xikitita Jun 11, 2024
1a65e3e
Merge branch 'main' of https://github.com/Lovisaaberg/project-final
Xikitita Jun 11, 2024
82bc7e2
code cleaning (#79)
AHPIXI Jun 11, 2024
eb15131
404 styling (#80)
Xikitita Jun 11, 2024
4619235
Merge branch 'main' of https://github.com/Lovisaaberg/project-final
Xikitita Jun 11, 2024
235e01e
Styling to all planets
Lovisaaberg Jun 11, 2024
7332b47
Merge branch 'main' into allplanets-branch
Lovisaaberg Jun 11, 2024
b5cc310
Merge pull request #81 from Lovisaaberg/allplanets-branch
Lovisaaberg Jun 11, 2024
676b89f
added lottie anomations (#82)
AHPIXI Jun 11, 2024
9ca4b62
Added media queries
Lovisaaberg Jun 11, 2024
a8909a2
Merge pull request #83 from Lovisaaberg/media-queries
Lovisaaberg Jun 11, 2024
1926385
Merge branch 'main' of https://github.com/Lovisaaberg/project-final
Xikitita Jun 12, 2024
af03a53
deleted toml file
Lovisaaberg Jun 12, 2024
58ad5a9
404 desktop (#84)
Xikitita Jun 12, 2024
8fd9316
Merge branch 'main' of https://github.com/Lovisaaberg/project-final
Xikitita Jun 12, 2024
c36f0a4
Fixed responsiveness on landing page
Lovisaaberg Jun 12, 2024
3e8c572
Merge branch 'main' into responsiveness
Lovisaaberg Jun 12, 2024
588ea44
Merge pull request #85 from Lovisaaberg/responsiveness
Lovisaaberg Jun 12, 2024
aed249b
Celestial mediaqueries (#86)
Xikitita Jun 12, 2024
97afb1f
Merge branch 'main' of https://github.com/Lovisaaberg/project-final
Xikitita Jun 12, 2024
2b3177c
added timer for animation (#87)
AHPIXI Jun 12, 2024
ca19c0f
Dropdown rollup (#88)
Xikitita Jun 12, 2024
42136cd
Merge branch 'main' of https://github.com/Lovisaaberg/project-final
Xikitita Jun 12, 2024
576e444
Cors issue (#89)
Xikitita Jun 12, 2024
cdb7b69
Merge branch 'main' of https://github.com/Lovisaaberg/project-final
Xikitita Jun 12, 2024
9c00f16
added default loading to components
Xikitita Jun 12, 2024
e552bd9
Loading (#90)
Xikitita Jun 12, 2024
353b6c2
Fixed responsivness on landing page and small other changes
Lovisaaberg Jun 12, 2024
3c220d0
Merge branch 'main' into fix-branch
Lovisaaberg Jun 12, 2024
f58889d
Merge pull request #91 from Lovisaaberg/fix-branch
Lovisaaberg Jun 12, 2024
2456985
commit -m"fixed merge conflict"
Xikitita Jun 12, 2024
7097360
solved merge conflict (#92)
Xikitita Jun 12, 2024
1cba41c
updated mq for planets (#93)
AHPIXI Jun 12, 2024
dd2958b
Added some features for accessibility and small changes on margins
Lovisaaberg Jun 12, 2024
22eec32
Merge pull request #94 from Lovisaaberg/fix-branch
Lovisaaberg Jun 12, 2024
7fbb618
Small change
Lovisaaberg Jun 12, 2024
68c111a
Animation added for scrolling down
Lovisaaberg Jun 12, 2024
7f402cf
Merge pull request #95 from Lovisaaberg/animation-branch
Lovisaaberg Jun 12, 2024
0a99635
Changes to margins
Lovisaaberg Jun 13, 2024
26b2bbb
Merge pull request #96 from Lovisaaberg/clean-up-branch
Lovisaaberg Jun 13, 2024
f1a6379
Changed loading state
Lovisaaberg Jun 14, 2024
6c72fdf
Merge pull request #97 from Lovisaaberg/spacefeed-branch
Lovisaaberg Jun 14, 2024
c0cc3f4
Added form to converter for tabing
Lovisaaberg Jun 14, 2024
3e5c091
Merge pull request #98 from Lovisaaberg/massconv-branch
Lovisaaberg Jun 14, 2024
4b7a64d
Removed footer
Lovisaaberg Jun 18, 2024
1bcc9c7
Merge pull request #99 from Lovisaaberg/footer-fix
Lovisaaberg Jun 18, 2024
3b1782e
Added text to readme
Lovisaaberg Jun 18, 2024
6947505
Merge pull request #100 from Lovisaaberg/readme-branch
Lovisaaberg Jun 18, 2024
8b5f3d5
Added netlify.toml file
Lovisaaberg Jun 20, 2024
658b43f
Optimized routes
Lovisaaberg Jun 20, 2024
becfa52
Merge pull request #101 from Lovisaaberg/routes-fix
Lovisaaberg Jun 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 23 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,33 @@
# Final Project

Replace this readme with your own information about your project.
MASS CONVERTER:
We created a calculator that convert mass weight in kilograms based on the gravitational force on each planet in the solar system. A result function is mapping through the list of planets and present the results accordingly, in a smooth scroll using useState, useRef and useEffect hooks.

Start by briefly describing the assignment in a sentence or two. Keep it short and to the point.
POST FEED:
The celestial feed is where users can share and interact with each other through posted messages.

We have used state management with useState hook for managing message input, error handling and tracking liked messages. For fetching and displaying messages we've used the UseEffect hook.

And to store and retrieve liked messages we’ve used localStorage.

For better user experience, the feed incorporates character count and visual feedback with animations during loading and for scrolling.

CAROUSEL:
The planet carousel component creates an interactive carousel of planetary images using the "react-slick" library for smooth transitions and custom arrows for navigation.

We have used import useState, useEffect, Link and styled components to manage state, routing and for the styling.

The carousel is rendered inside the CarouselContainer. Each slide is wrapped in a Link component for navigation to different routes based on the planet name.

ACCESSIBILITY:
We have thoughtfully considered colors and contrasts to ensure readability. Our site supports keyboard navigation, allowing users to easy tab between features. The top menu provides easy access to different sections, and we've included breadcrumbs so users can always see their current location and navigate through them as well. These features enhance the overall accessibility and usability of the site.

## The problem

Describe how you approached to problem, and what tools and techniques you used to solve it. How did you plan? What technologies did you use? If you had more time, what would be next?

## View it live

Every project should be deployed somewhere. Be sure to include the link to the deployed project so that the viewer can click around and see what it's all about.
Backend: https://project-final-45vw.onrender.com
Frontend: https://thesolarsystemtravelguide.netlify.app
2 changes: 1 addition & 1 deletion backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ This project includes the packages and babel setup for an express server, and is
## Getting Started

1. Install the required dependencies using `npm install`.
2. Start the development server using `npm run dev`.
2. Start the development server using `npm run dev`.
41 changes: 41 additions & 0 deletions backend/data/Celestial.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
[
{
"name": "Sun",
"nickname": "The Star at the Center",
"material": "Hydrogen and helium",
"surfaceTemperature": {
"core": "15,000,000°C",
"surface": "5,500°C"
},
"weatherClimate": "Solar wind, sunspots, solar flares, coronal mass ejections",
"travelTime": "Approximately 93 million miles from Earth; about 8 minutes for light to travel",
"curiosa": [
"The Sun's core, which accounts for 25% of its radius, is where nuclear fusion occurs.",
"The Sun has a layered structure with the core, radiative zone, and convective zone.",
"Solar phenomena such as sunspots, solar flares, and coronal mass ejections originate in the outer layers.",
"The Sun is about 4.6 billion years old and is expected to continue burning for another 5 billion years.",
"It contains 99.86% of the mass in the Solar System.",
"The Sun's magnetic field is carried outward through the Solar System by the solar wind."
]
},
{
"name": "Moon",
"nickname": "Earth's Satellite",
"material": "Rock and dust",
"surfaceTemperature": {
"night": "-173°C",
"day": "127°C"
},
"weatherClimate": "No atmosphere, extreme temperature fluctuations",
"travelTime": "Approximately 238,855 miles from Earth; about 3 days with current technology",
"curiosa": [
"The Moon exerts a gravitational pull on Earth that significantly affects the planet's tides.",
"The tidal effect of the Moon causes slight but measurable deformations in the Earth's crust known as Earth tides.",
"The interaction between the Earth and Moon has gradually slowed Earth's rotation and caused the Moon to drift away from Earth.",
"The Moon has a diameter of about 3,474 kilometers (2,159 miles).",
"It is the fifth largest moon in the Solar System.",
"The far side of the Moon was first seen by humans in 1959 when the Soviet spacecraft Luna 3 transmitted photographs."
]
}
]

151 changes: 151 additions & 0 deletions backend/data/Planets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
[
{
"name": "Mercury",
"nickname": "The Swift Planet",
"moons": 0,
"asteroids": "None known in its orbit",
"material": "Rock and metal",
"surfaceTemperature": {
"night": "-173°C",
"day": "427°C"
},
"weatherClimate": "No atmosphere, extreme temperature fluctuations",
"travelTime": "Approximately 39-48 million miles from Earth; about 3 months with current technology",
"curiosa": [
"Mercury is the closest planet to the Sun, with an average distance of about 58 million kilometers (36 million miles).",
"It experiences the most extreme temperature fluctuations in the solar system, ranging from -173°C (-280°F) at night to 427°C (800°F) during the day.",
"It has the shortest orbit around the Sun, taking only 88 Earth days to complete one revolution.",
"Mercury has a very thin atmosphere, known as an exosphere, made up of atoms blasted off its surface by solar wind and meteoroid impacts."
]
},
{
"name": "Venus",
"nickname": "Earth's Twin",
"moons": 0,
"asteroids": "None known in its orbit",
"material": "Silicate rock and metals",
"surfaceTemperature": "467°C",
"weatherClimate": "Thick clouds of sulfuric acid, surface pressure 92 times that of Earth, frequent lightning and acid rain",
"travelTime": "Approximately 38-261 million miles from Earth; about 3-4 months with current technology",
"curiosa": [
"Venus is the hottest planet in our solar system, with surface temperatures averaging around 462°C (864°F) due to its thick, toxic atmosphere.",
"It is often called Earth's twin because it is similar in size, density, and composition.",
"Venus rotates very slowly and in the opposite direction to most planets, meaning the Sun rises in the west and sets in the east, indicating a retrograde rotation."
]
},
{
"name": "Tellus",
"nickname": "The Blue Planet",
"moons": 1,
"asteroids": "No known asteroids in stable orbit around Earth",
"material": "Rock and metal",
"surfaceTemperature": "15°C",
"weatherClimate": "Diverse climates ranging from polar to tropical",
"travelTime": "N/A (we live here!)",
"curiosa": [
"Earth is the only planet known to support life and has liquid water on its surface.",
"About 71% of Earth's surface is covered with water.",
"Earth's atmosphere is composed of five main layers, which protect us from space debris and harmful solar radiation."
]
},
{
"name": "Mars",
"nickname": "The Red Planet",
"moons": 2,
"asteroids": "Some captured Trojan asteroids",
"material": "Iron oxide (rust) and silicate rock",
"surfaceTemperature": {
"winter": "-125°C",
"summer": "20°C"
},
"weatherClimate": "Thin atmosphere, frequent dust storms, cold desert-like climate",
"travelTime": "Approximately 55-400 million miles from Earth; about 6-9 months with current technology",
"curiosa": [
"Mars is often called the Red Planet because of its reddish appearance, which is due to iron oxide (rust) on its surface.",
"It is home to the largest volcano in the solar system, Olympus Mons, which is about 13.6 miles (22 kilometers) high.",
"Mars has two small moons, Phobos and Deimos, which are thought to be captured asteroids.",
"It has a canyon system, Valles Marineris, that is over 4,000 km long."
]
},
{
"name": "Jupiter",
"nickname": "The Gas Giant",
"moons": 92,
"asteroids": "Numerous Trojan asteroids sharing its orbit",
"material": "Hydrogen and helium, with a possible rocky core",
"surfaceTemperature": "-145°C at cloud tops",
"weatherClimate": "Great Red Spot (a giant storm), bands of clouds, strong winds",
"travelTime": "Approximately 365-601 million miles from Earth; about 1-2 years with current technology",
"curiosa": [
"Jupiter is the largest planet in our solar system, with a diameter of about 143,000 kilometers (89,000 miles).",
"It has a giant storm called the Great Red Spot, which is larger than Earth and has been raging for at least 400 years.",
"Jupiter has at least 79 moons, including the four largest called the Galilean moons: Io, Europa, Ganymede, and Callisto.",
"It has the strongest magnetic field in the solar system."
]
},
{
"name": "Saturn",
"nickname": "The Ringed Planet",
"moons": 83,
"asteroids": "Some Trojan asteroids",
"material": "Hydrogen and helium",
"surfaceTemperature": "-178°C at cloud tops",
"weatherClimate": "Extensive ring system, strong winds and storms",
"travelTime": "Approximately 746-1.6 billion miles from Earth; about 3-6 years with current technology",
"curiosa": [
"Saturn is famous for its stunning ring system, which is made up of ice and rock particles.",
"It is the least dense planet; it could float in water if there were a body of water large enough.",
"Saturn's largest moon, Titan, has a thick atmosphere and lakes of liquid methane and ethane.",
"Saturn's rings are made mostly of ice particles, rocky debris, and dust."
]
},
{
"name": "Uranus",
"nickname": "The Ice Giant",
"moons": 27,
"asteroids": "None known in its orbit",
"material": "Hydrogen, helium, and ices (water, ammonia, methane)",
"surfaceTemperature": "-224°C",
"weatherClimate": "Very cold, thick atmosphere, rotates at a tilted axis, extreme seasonal variations",
"travelTime": "Approximately 1.6-3.2 billion miles from Earth; about 8.5 years with current technology",
"curiosa": [
"Uranus rotates on its side, making its rotation axis nearly parallel to its orbit.",
"It has the coldest atmosphere of any planet, with temperatures dropping as low as -224°C (-371°F).",
"Its blue-green color is due to methane in its atmosphere, which absorbs red light."
]
},
{
"name": "Neptune",
"nickname": "The Windy Planet",
"moons": 14,
"asteroids": "Some known Neptune Trojans",
"material": "Hydrogen, helium, and ices (water, ammonia, methane)",
"surfaceTemperature": "-214°C",
"weatherClimate": "Strong winds, storms, Great Dark Spot",
"travelTime": "Approximately 2.7-4.3 billion miles from Earth; about 12 years with current technology",
"curiosa": [
"Neptune has the strongest winds in the solar system, with speeds reaching up to 2,100 kilometers per hour (1,300 miles per hour).",
"Similar to Jupiter's Great Red Spot, Neptune has a giant storm called the Great Dark Spot.",
"Neptune's largest moon, Triton, has geysers that spew nitrogen gas and is one of the coldest places in the solar system.",
"Neptune emits more heat than it receives from the Sun."
]
},
{
"name": "Pluto",
"nickname": "The Dwarf Planet",
"moons": 5,
"asteroids": "None known in its orbit",
"material": "Rock and ice",
"surfaceTemperature": {
"range": "-240°C to -218°C"
},
"weatherClimate": "Very thin atmosphere, surface made of nitrogen ice with possible seasonal nitrogen snow",
"travelTime": "Approximately 2.7-4.7 billion miles from Earth; about 9-12 years with current technology",
"curiosa": [
"Pluto has a heart-shaped glacier named Tombaugh Regio and is part of the Kuiper Belt.",
"It is classified as a dwarf planet in the Kuiper Belt.",
"Pluto has an elliptical orbit that takes it closer to the Sun than Neptune at times.",
"NASA's New Horizons mission provided the first close-up images of Pluto in 2015."
]
}
]
82 changes: 82 additions & 0 deletions backend/data/SpaceFeed.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
[
{
"message": "One day on Venus is longer than a year! It takes 243 Earth days to rotate once and 225 days to orbit the Sun.",
"likes": 0,
"createdAt": "2024-05-28T08:00:00Z"
},
{
"message": "Jupiter has the shortest day of all the planets. It completes a rotation on its axis in about 10 hours.",
"likes": 0,
"createdAt": "2024-05-27T12:00:00Z"
},
{
"message": "The hottest planet is Venus, with an average surface temperature of about 462°C (864°F).",
"likes": 0,
"createdAt": "2024-05-26T18:00:00Z"
},
{
"message": "Mars is home to the tallest mountain in the solar system, Olympus Mons, at about 13.6 miles high.",
"likes": 0,
"createdAt": "2024-05-25T10:00:00Z"
},
{
"message": "The Milky Way will collide with the Andromeda galaxy in about 4.5 billion years.",
"likes": 0,
"createdAt": "2024-05-24T15:00:00Z"
},
{
"message": "Neutron stars are so dense that a sugar-cube-sized amount would weigh about a billion tons.",
"likes": 0,
"createdAt": "2024-05-23T20:00:00Z"
},
{
"message": "Olympus Mons on Mars is the largest volcano in the solar system, nearly three times the height of Everest.",
"likes": 0,
"createdAt": "2024-05-22T14:00:00Z"
},
{
"message": "A day on Pluto is about 6.4 Earth days long.",
"likes": 0,
"createdAt": "2024-05-21T09:00:00Z"
},
{
"message": "Space is silent because there is no atmosphere to carry sound waves.",
"likes": 0,
"createdAt": "2024-05-20T17:00:00Z"
},
{
"message": "The moon drifts away from Earth at a rate of about 1.5 inches per year.",
"likes": 0,
"createdAt": "2024-05-19T11:00:00Z"
},
{
"message": "There are more trees on Earth (over 3 trillion) than stars in the Milky Way (100-400 billion).",
"likes": 0,
"createdAt": "2024-05-18T08:00:00Z"
},
{
"message": "Saturn's rings are mostly made of ice particles, rocky debris, and dust.",
"likes": 0,
"createdAt": "2024-05-17T13:00:00Z"
},
{
"message": "It rains diamonds on Jupiter and Saturn due to high pressure and heat turning carbon into diamonds.",
"likes": 0,
"createdAt": "2024-05-16T16:00:00Z"
},
{
"message": "The Sun's core is about 27 million degrees Fahrenheit (15 million degrees Celsius).",
"likes": 0,
"createdAt": "2024-05-15T19:00:00Z"
},
{
"message": "A year on Neptune lasts about 165 Earth years.",
"likes": 0,
"createdAt": "2024-05-14T22:00:00Z"
},
{
"message": "Pluto has mountains made of ice that are as tall as the Rockies.",
"likes": 0,
"createdAt": "2024-05-13T08:00:00Z"
}
]
41 changes: 41 additions & 0 deletions backend/models/CelestialModel.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import mongoose from "mongoose";

const { Schema, model } = mongoose;

const celestialSchema = new Schema({
name: {
type: String,
required: true,
},
nickname: {
type: String,
required: true,
},
material: {
type: String,
required: true,
},
surfaceTemperature: {
type: Map,
of: String,
required: true,
},
weatherClimate: {
type: String,
required: true,
},
travelTime: {
type: String,
required: true,
},
curiosa: [
{
type: String,
required: true,
},
],
});

const CelestialModel = model("CelestialModel", celestialSchema);

export default CelestialModel;
Loading