~rbdr/lgtm

looks good to me
92ccd82c — Ruben Beltran del Rio 6 months ago
Port to svelte
55fd5e33 — Ben Beltran 5 years ago
1.0.0 Release Updates
ead516a9 — Ben Beltran 5 years ago
LGTM-2 Read from database

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~rbdr/lgtm
read/write
git@git.sr.ht:~rbdr/lgtm

You can also use your local clone with git send-email.

#lgtm

looks good to me

#What you'll need

You should have node and a mysql database where we can create and read a table.

#Configuring the app

The app is configured using environment variables. You can check config/config.js to see the expected keys. Most values are optional and the defaults should work fine, you will have to provide three values for the database connection as no defaults are provided:

  • LGTM_MYSQL_USER
  • LGTM_MYSQL_PASSWORD
  • LGTM_MYSQL_DATABASE

An easy way to configure this app for local development is by using a .env file in the project root. An example one is provided in env.dist, you can copy that file and update with your own defaults.

#Setting Up the Database

Run npm run setup_database. This will create the table.

#Running

Run npm start