pediaroute-go

module
v0.0.0-...-ce87abf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2023 License: GPL-3.0

README

pediaroute

Source of https://pediaroute.com/ .

How to build

You need

  • Golang 1.19
  • Make
  • Node.js 16+
  • yarnpkg
$ cd web && yarn install && yarn build:dev
$ make

How to generate application data

Before generating application data, you need to download wikipedia sql files.

Japanese

  1. jawiki-YYYYMMDD-page.sql.gz
  2. jawiki-YYYYMMDD-pagelinks.sql.gz

English

  1. enwiki-YYYYMMDD-page.sql.gz
  2. enwiki-YYYYMMDD-pagelinks.sql.gz
$ ./build/gen \
-ip /path/to/jawiki-YYYYMMDD-page.sql.gz \
-il /path/to/jawiki-YYYYMMDD-pagelinks.sql.gz \
-o .

You will find 4 files in current directory:

  • config.json
  • title.dat
  • page.dat
  • link.dat

License

GPL v3

Directories

Path Synopsis
cmd
gen
web
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL