My personal completed version of the NASA project from Complete Node.js Developer: Zero to Mastery.
Keep in mind that this code may be different from the original since it was made by me during course classes and not copied from the original repository.
- Ensure you have Node.js installed.
- Create a free Mongo Atlas database online or start a local MongoDB database.
- Create a
server/.env
file with aMONGO_URL
property set to your MongoDB connection string. - Create a
client/.env
file with aBUILD_PATH
property set toserver/public
folder before deploying your react app. - In the terminal, run:
npm install
, it should install all dependencies from both client and server altogether
- In the terminal, run:
npm run deploy
- Browse to the mission control frontend at localhost:8000 and schedule an interstellar launch!
- Ensure you have the latest version of Docker installed
- Run
docker build -t nasa-project .
- Run
docker run -it -p 8000:8000 nasa-project
To run any automated tests, run npm test
. This will:
- Run all the client-side tests:
npm test --prefix client
- Run all the server-side tests:
npm test --prefix server