Project NASA is an API-based project that interacts with external APIs to retrieve data about SpaceX missions. The project allows users to add their own missions, and all the data is stored in a MongoDB database.
Through this project, I could gain hands-on experience in using APIs to access external data and integrating it with my own applications.
By working on this project, I could gain a deeper understanding of the complexities involved in building applications that interact with external data sources. I also gained experience in using modern web development tools such as MongoDB, making them better equipped to tackle more complex projects in the future.
Overall, Project NASA was an excellent opportunity for me to improve my skills in API integration and backend development while also gaining a deeper understanding of the space industry and space exploration.
As this project uses the mongodb database, you need to configure the MONGO_URL
variable using your own mongodb connection string.
It can be a local database or MongoDB Atlas.
MONGO_URL
can be defined inside /server/src/services/mongo.js
or using a .env
file that you can create inside /server/.env
.
To install the project run the following commands:
-
npm install
-
npm run build
- npm install
- npm run watch
to run the tests:
- npm run test
If you want to run the server using https follow the next steps:
Install https://gitforwindows.org/ and use the command inside GIT Bash
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -sha256 -days 365 -nodes
You can also add -nodes (short for "no DES") if you don't want to protect your private key with a passphrase. Otherwise it will prompt you for "at least a 4 character" password.