https://github.com/henry-oberholtzer/acidpattern
Website for sharing and programming patterns for the TB-303 and its clones and emulations.
https://github.com/henry-oberholtzer/acidpattern
303 acid music
Last synced: about 2 months ago
JSON representation
Website for sharing and programming patterns for the TB-303 and its clones and emulations.
- Host: GitHub
- URL: https://github.com/henry-oberholtzer/acidpattern
- Owner: henry-oberholtzer
- License: gpl-3.0
- Created: 2024-03-25T01:43:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-18T21:52:08.000Z (over 1 year ago)
- Last Synced: 2024-06-19T03:54:33.815Z (over 1 year ago)
- Topics: 303, acid, music
- Language: TypeScript
- Homepage: https://acidpattern.com
- Size: 5.37 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# AcidPattern

A site dedicated to sharing and composing patterns for the Roland TB-303 and its various clones and emulations. Still under development, but soon be live at acidpattern.com
Graphically inspired by early rave music forums, chunky VST design and old LCD panels.
## Set Up
If you're working a fork of this project or looking to contribute, the following guide will help you get acidpattern running locally.
### Installing Python Dependencies
This guide assumes you have python 3.12 or greater installed on your system. Compatibility with older version of Python has not been determined at this time.
In the root directory run `python -m venv .venv` to establish a virtual environment. Activate the environment with `source .venv/Scripts/activate` on Windows or `source .venv/bin/activate` on MacOS/Linux.
Install the dependencies with `python -m pip install`, if using poetry: `poetry install`.
### Installing Node Dependencies
Navigate into the `/frontend` folder and run `npm install` to install the frontend dependencies.
### Establishing the .env
Create a .env file in the root project directory and add the following code.
```
DJANGO_SERVER = 'http://localhost:8000'
FRONTEND_SERVER = 'http://localhost:5173'
DJANGO_SECRET_KEY = ''
```In the /frontend folder, create .env containing the following:
```
VITE_BACKEND='http://localhost:8000'
```If you're planning to run on different ports or a server, adjust accordingly.
You will also need to create a secret key for django.
Activate a python shell in the terminal `python` and run the following.
```
from django.core.management.utils import get_random_secret_key
print(get_random_secret_key())
```
Take the secret key and use it as the `DJANGO_SECRET_KEY``exit()` to close the Python shell.
### Creating the database
In the `acidpattern_api/` directory, run `python manage.py migrate` to create the database.
Run `python manage.py createsuperuser` to establish a superuser for the database.
## Running the development server.
#### Both servers simultaenously:
`npm run dev` in the `frontend/` directory.
#### Only the django server:`python manage.py runserver` in the `acidpattern_api/` directory/
`npm run django-dev` in the `frontend/` directory.
#### To run only the vite server:
`npm run vite-dev` in the `frontend/` directory.# Testing
Tests can be run for the backend by navigating to `acidpattern_api` and running `coverage run manage.py test` within the venv shell.
# License
Copyright 2024 Henry Oberholtzer
Original code licensed under a GNU GPLv3