GithubHelp home page GithubHelp logo

rnons / ted2srt Goto Github PK

View Code? Open in Web Editor NEW
142.0 9.0 21.0 3.56 MB

Download bilingual subtitles of TED talks. https://ted2sub.org now.

Home Page: https://ted2sub.org

License: BSD 3-Clause "New" or "Revised" License

Haskell 43.25% CSS 1.19% JavaScript 22.63% HTML 1.10% Shell 0.91% Nix 3.33% PureScript 26.72% TypeScript 0.32% Dhall 0.55%
ted-talks ted-subtitle ted bilingual

ted2srt's Introduction

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

Nix is required for development.

Frontend

cd frontend
nix-shell
spago build -w
yarn
yarn start

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

Backend

cd backend
nix-shell
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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.