2022-04-06 22:35:30 -04:00
2022-04-06 22:35:30 -04:00
2022-02-01 05:45:36 -05:00
2022-04-02 08:59:21 -04:00
2022-03-04 03:50:47 -05:00
2022-03-19 22:18:34 -04:00
2022-02-01 02:43:28 -05:00
2022-02-01 03:24:08 -05:00
2022-02-01 03:24:08 -05:00
2022-02-01 00:32:00 -05:00
…
2022-03-18 07:07:53 -04:00
2022-04-05 23:42:36 -04:00

fakeyou-frontend

TODO:

  • Rename storyteller -> create-storyteller
  • Move static storyteller -> packages/,
  • Merge in other frontends
  • Merge with backend and use protos for API?
  • Rename this repo to storyteller-frontend
  • Upgrade to React 18 Carefully upgrade react. OMG. Also tests in place to ensure builds.
  • New domain. Storyteller.stream. Add video too.

Develop locally without CORS:

chromium-browser --disable-web-security --user-data-dir=~/chrome

Or Mac,

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --disable-web-security --user-data-dir=~/chrome

To add local libraries from the monorepo as dependencies

eg, to add the common "components" package to the "storyteller-home" website,

yarn workspace @storyteller/storyteller-home add file file:../components (ACTUALLY, THIS MAY HAVE ISSUES)

NB: This is now a MONOREPO

Based on https://medium.com/geekculture/setting-up-monorepo-with-create-react-app-cb2cfa763b96, which isn't the best guide, but it works.

Library code is exported in the library's index.tsx (meh)

To start the react server, run "yarn start-storyteller" or "yarn start-fakeyou"

Running

# Install Yarn if not present (Linux/Mac)
sudo npm install --global yarn

# We might need a newer node (Linux/Mac)
sudo install n -g
sudo n stable

# Install project deps (Linux/Mac)
yarn install

# Start one or more of the several frontends (Linux/Mac)
yarn start-fakeyou
yarn start-storyteller

TODO: Upgrade React, it's a bit behind. See downgrade @ SHA d739b66bfa3315620208579193d652e8e460da1e.

Good Code Examples

  • storyteller/src/pages/tts_configs/TtsConfigsEditRulePage.tsx - Tree of components that handle a very complicated update API

Documentation

docs.fakeyou.com is generated from ./docs using Docsify.

To run and test locally,

sudo npm i docsify-cli -g
docsify serve docs

Netlify Notes

The .node-version file controls which version of node Netlify uses to build!

Old Readme Follows

Frontend website for https://fakeyou.com/ (previously https://vo.codes)

Hosted with netlify.

Installation in Dev

Normally, npm install in the ./fakeyou directory works, but Mac needed the following workaround for a sass build failure:

nvm install 14

Logo, Favicon, Font

Font: fugaz one, 110, #209CEE

Using https://favicon.io/favicon-generator/

Transparent Images

https://www.remove.bg (pretty cheap)gt

Social Icons

Taken from subscription service https://www.flaticon.com

This pack: https://www.flaticon.com/packs/social-logo-1

Video Thumbnails

Generated with https://ezgif.com/

  • webp, 500x300px (~100kb each)

Reverse clips:

ffmpeg -i input.mp4 -vf reverse reversed.mp4
Languages
Rust 59.4%
TypeScript 39.3%
JavaScript 0.7%
Python 0.3%
CSS 0.2%
Other 0.1%