This is the main api for acquiring wordlists, translations and user progress data for the philarios language learning application.
-
Install PostgreSQL
-
Clone the repository
git clone https://github.com/radovandelic/philarios.git
cd philarios
- Install dependencies
npm install
-
Set DBUSERNAME, DBPASSWORD and DBNAME environment variables to your SQL username, password and database name.
-
Populate SQL tables with word frequency lists.
# DBUSERNAME=<username> DBPASSWORD=<password> DBNAME=<db name>
node resources/populateWordLists.js
- Start development live-reload server
# DBUSERNAME=<username> DBPASSWORD=<password> DBNAME=<db name>
npm run dev
- Start production server:
# DBUSERNAME=<username> DBPASSWORD=<password> DBNAME=<db name>
npm start
MIT