The Digital Audio Archive is a web application that allows users to upload, view, and remove audio files. It uses Node.js for the backend, Express for routing, Multer for file uploads, SQLite as the database, and EJS as the templating engine for rendering HTML pages.
- Audio File Upload: Users can upload audio files through a web interface.
- View Audio Files: Users can view a list of all uploaded audio files.
- Remove Audio Files: Users can remove audio files from the list and the server.
- Node.js (version 14 or higher)
- npm (Node Package Manager)
- Clone the repository:
git clone https://github.com/your-username/digital-audio-archive.git cd digital-audio-archive
- Install dependencies:
npm install
- Start the server:
node server.js
- Access the application:
- Open your browser and go to
http://localhost:3000
.
- Open your browser and go to
server.js
: The main file containing the server logic.uploads/
: The directory where uploaded audio files are saved.public/
: The directory containing static files (CSS, images, etc.).views/
: The directory containing EJS files for rendering HTML pages.database.db
: The SQLite database file.
- Go to the homepage of the application.
- Fill out the upload form with the title, artist, and select the audio file.
- Click "Upload" to upload the file.
- In the list of audio files, click the "Remove" button next to the file you want to remove.
- The file will be removed from both the server and the database.
Contributions are welcome! If you would like to contribute, please open an issue or submit a pull request.
This project is licensed under the MIT License. See the file for more details.