Skip to content
/ ted2srt Public
forked from rnons/ted2srt

Download bilingual subtitles of TED talks

License

Notifications You must be signed in to change notification settings

anwen/ted2srt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ted2srt

Donate

This is the source code of ted2srt.org, a website to download bilingual subtitles of TED talks. The backend is written in Haskell, while the frontend is in PureScript.

Set up development environment

Frontend

Setup purescript and pulp, then

cd frontend
yarn
pulp -w build
yarn start

Run yarn build:dev once, so that backend can start correctly.

Backend

First, setup nix and stack the way you like.

Then

cd backend
stack build

While stack is running, you can setup the database. Postgres and Redis are needed, you can either use your system wide version or nix installed version. Following is how to use the nix version.

# enter nix shell to use postgres and redis installed by nix
nix-shell

# start redis
redis-server --daemonize yes

# start postgres, you only need to initdb and createdb for the first time
initdb -D data -U postgres
pg_ctl -D data -l logfile start
createdb -U postgres ted2srt

One last step, create your own .env file and modify it to your needs.

cp .env.example .env

If stack build has finished now, run

stack exec ted2srt

to start the server.

Then navigate to http://localhost:3001, try paste a TED talk url to the search bar, cheers.

About

Download bilingual subtitles of TED talks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Haskell 47.1%
  • PureScript 24.6%
  • JavaScript 22.4%
  • TSQL 2.4%
  • CSS 1.2%
  • HTML 1.1%
  • Other 1.2%