A full-stack web application featuring an alarm clock with apocalyptic-themed interruptions.
-
Navigate to the backend directory:
cd backend -
Install dependencies:
npm install -
Start the server:
npm startThe server will run on http://localhost:5000
-
Navigate to the frontend directory:
cd frontend -
Install dependencies:
npm install -
Start the development server:
npm startThe app will open at http://localhost:3000
apocalypse-alarm-control-panel/
├── frontend/
│ ├── public/
│ ├── src/
│ │ ├── components/
│ │ ├── api.js
│ │ └── App.js
│ └── package.json
└── backend/
├── database/
├── models/
├── routes/
└── server.js
## Local Development
### 1) Install dependencies
```bash
cd backend
npm install
cd ../frontend
npm install
cd backend
npm run devThe backend will run on http://localhost:4000.
cd frontend
npm run devThe frontend will run on http://localhost:5173.
POST /alarm/set- Set/update the alarm timeGET /alarm- Get current alarm statePOST /alarm/stop- Stop the current alarmGET /popup- Get a random interruption message