DEMO: https://www.youtube.com/watch?v=TQN6EXncQ4U&t=195s
Follow these instructions to set up the project locally on your machine.
Ensure you have the following installed:
- Clone the repository:
git clone https://github.com/geengene/03_Triolingo.git
cd 03_Triolingo- Install dependencies:
npm install
create a python venv within project folder: `python -m venv venv` for the required dependencies- log in to duolingo
- get jwt login token by pasting this command into your console:
document.cookie.match(new RegExp('(^| )jwt_token=([^;]+)'))[0].slice(11)
- get jwt login token by pasting this command into your console:
- create a local database using postgres' pgadmin 4, setup a database with whatever name you prefer.
- create an .env file fill in the respective details: DUOLINGO_USERNAME= DUOLINGO_JWT= DB_NAME= USER_NAME=postgres PASSWORD= HOST=localhost PORT=5432
- Start the development server:
node index.js- Open your browser and navigate to
http://localhost:3000to see the application running.
To create a production build, run:
npm run buildTo run tests, use:
npm testpublic/- Contains the static assetspackage.json- Lists the project's node dependencies and scriptsrequirements.txt- Lists the python libraries required
- currently only practising vocabulary and pronunciation works
- plans to incorporate, pronunciation, writing and reading function for an all encompassing learning experience.
- add user authentication
- add session management
If you wish to contribute to this project, please follow these steps:
- Fork the repository
- Create a new branch (
git checkout -b feature-branch) - Commit your changes (
git commit -m 'Add some feature') - Push to the branch (
git push origin feature-branch) - Open a pull request
This project is licensed under the MIT License.