Node.js NASA Mission Control Project
- Ensure you have Node.js and Docker 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. - In the terminal, run:
npm install
- Ensure you have the latest version of Docker and Docker Compose installed.
- In the terminal, run:
docker-compose up
- Browse to the mission control frontend at localhost:8000 and schedule an interstellar launch!
- In the terminal, run:
npm run deploy
- Browse to the mission control frontend at localhost:8000 and schedule an interstellar launch!
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