Your helpful assistant in writing a complaint letter.
Providing with keyword search, find relevant legal provisions and the most cited judgments and take notes. Best website for those who want to write a simple complaint letter but don't know where to start.
Website: https://rae-lee.github.io/Legal-Dictionary-Frontend
Default account:
Name | Password |
---|---|
user1 | 12345678 |
user2 | 12345678 |
Front-end Repo: Legal-Dictionary-Frontend Click the link and you can read usage guide there.
Law data came from 全國法規資料庫 APIs.
Judgements data was obtained from scraping 司法院裁判書系統 website by legal-dictinary-crawler.
- It's simple to run
Legal-Dictionary
on your local computer. - The following is step-by-step instruction.
$ git clone https://github.com/Rae-Lee/Legal-Dictionary.git
$ cd Legal-Dictionary
$ npm install
Download mysql2
$ npm install mysql2
Or use Docker
without downloading.
$ docker pull mysql:latest
$ docker run -name [your image name] -p 3306:3306 -e MYSQL_ROOT_PASSWORD=[your password] -d
Create a database in your MySQL
.
$ winpty docker exec -it [your image name] bash
$ mysql -u root -p
$ CREAT DATABASE [your database name];
$ use [your database name]
Modify the values of username, password and database in config/config.js to connect.
And fill in .env.example
Add JWT_SECRET_KEY
to .env.example
.
$ npx sequelize db:migrate
$ npx sequelize db:seed:all
npm run dev
Execute successfully if seeing following message
It is running on http://localhost:3000
npm run test
https://lean-scooter-300.notion.site/Legal-Dictionary-API-DOC-42633b09398b4cb08407e16763ef0cef?pvs=4
MIT © rae-lee