This is the backend server for the Sonificafy project, which processes frontend requests and handles data sonification.
The project uses a hybrid architecture with:
- Node.js: For the REST API server
- Python: For data processing and sonification
- Node.js (v18 or higher)
- Python (v3.8 or higher)
- npm or yarn
- pip (Python package manager)
- Clone the repository:
git clone https://github.com/alejandromur/sonificafy-backend.git
cd sonificafy-backend- Install Node.js dependencies:
npm install- Install Python dependencies:
pip install -r requirements.txt- Set up environment variables:
- Copy
.env.exampleto.env - Adjust the variables according to your environment
To start the server in development mode:
npm run devThe server will start at http://localhost:3000 (or the port specified in the environment variables).
sonificafy-backend/
├── src/ # Node.js source code
├── scripts/ # Python sonification scripts
├── audios/ # Generated audio files directory
├── .env # Environment variables
└── requirements.txt # Python dependencies
- express: Web framework
- cors: CORS middleware
- dotenv: Environment variables management
- axios: HTTP client
- numpy: Numerical processing
- scipy: Signal processing
This project is under the MIT License - see the LICENSE file for details.
Alejandro - alejandro@mamutlove.com
Contributions are welcome! Here's how you can help:
- Fork the repository
- Create a new branch (
git switch -c feature/amazing-feature) - Make your changes
- Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Please make sure to:
- Follow the existing code style
- Add comments to your code where necessary
- Update the documentation if needed
- Test your changes before submitting