Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Apocalypse Alarm Control Panel

image

A full-stack web application featuring an alarm clock with apocalyptic-themed interruptions.

  1. Navigate to the backend directory:

    cd backend
    
  2. Install dependencies:

    npm install
    
  3. Start the server:

    npm start
    

    The server will run on http://localhost:5000

Frontend Setup

  1. Navigate to the frontend directory:

    cd frontend
    
  2. Install dependencies:

    npm install
    
  3. Start the development server:

    npm start
    

    The app will open at http://localhost:3000

Project Structure

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

2) Start backend (API)

cd backend
npm run dev

The backend will run on http://localhost:4000.

3) Start frontend

cd frontend
npm run dev

The frontend will run on http://localhost:5173.


API Endpoints

  • POST /alarm/set - Set/update the alarm time
  • GET /alarm - Get current alarm state
  • POST /alarm/stop - Stop the current alarm
  • GET /popup - Get a random interruption message

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages