Something something like soundcloud but not like soundcloud.
Log in, upload records, done.
Simple, easy, KISS.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
777 B

2 years ago
  1. # Various development notes
  2. ## Backend
  3. Use the doc in the README.md
  4. Run server with:
  5. ```shell
  6. export AUTHLIB_INSECURE_TRANSPORT=1
  7. export FLASK_ENV=development
  8. flask run
  9. ```
  10. All ActivityPub code (inbound or outbound) needs to have the celery worker running.
  11. ## Unittests (backend)
  12. ```shell
  13. export CONFIGTEST=configtest.py
  14. pytest
  15. ```
  16. ## Unittests (frontend)
  17. None yet
  18. ## Frontend
  19. Create `front/config/local.json` with:
  20. ```json
  21. {
  22. "target": "http://127.0.0.1:5000/"
  23. }
  24. ```
  25. Also comment `SERVER_NAME` and `BASE_URL` in `config.py` when in dev.
  26. Run the front with: `cd front && npm run dev`
  27. Then access to the front on: http://localhost:8081
  28. The backend will be automatically proxified.
  29. ## Linters
  30. Backend:
  31. ```
  32. flake8 .
  33. black .
  34. ```
  35. Frontend:
  36. ```
  37. npm run lint
  38. ```