GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — unlock/locksmith at master · Adept-Camp/unlock

Expand file tree

/

locksmith

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

locksmith

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
.ebextensions
.ebextensions
 
 
__tests__
__tests__
 
 
config
config
 
 
logs
logs
 
 
migrations
migrations
 
 
scripts
scripts
 
 
src
src
 
 
types
types
 
 
.dockerignore
.dockerignore
 
 
.ebignore
.ebignore
 
 
.eslintignore
.eslintignore
 
 
.eslintrc.js
.eslintrc.js
 
 
.gitignore
.gitignore
 
 
.npmrc
.npmrc
 
 
.sequelizerc
.sequelizerc
 
 
Dockerrun.aws.json
Dockerrun.aws.json
 
 
README.md
README.md
 
 
VERSION
VERSION
 
 
jest.config.js
jest.config.js
 
 
package.json
package.json
 
 
server.js
server.js
 
 
tsconfig.json
tsconfig.json
 
 
yarn.lock
yarn.lock
 
 

README.md

Outline

Locksmith

Locksmith provides the ability to store metadata associated with Locks outside of the Ethereum blockchain, with reasonable permission around writes.

Locksmith currently handles the following responsibilities:

  • Event Data Storage
  • Price Data Storage
  • Lock Data Storage
  • Token Metadata Storage
  • Block Metadata Storage
  • User Accounts
  • Managed Key Purchases

The general idea being that some of the functionality will be moved towards a decentralized counterpart when the technology is available and time permits.

Getting Started

Running in Development

Locksmith utilizes SQLite to make it easy to get up and running. Upon startup the local database will be created and unprocessed migrations will be run.

You can start Locksmith in development with the following command: yarn dev.

Running in Production

Locksmith's suggested production datastore is Postgres, and will require access to a running Instance.

You can configure your connection details in a few ways. Here are the suggested methods:

  1. Configure environment variables (Locksmith will recognize these placed in an .env.dev.local file at the root of the monorepo)

    • DB_USERNAME - Database User
    • DB_PASSWORD - Password of User
    • DB_NAME - Database Name
    • DB_HOSTNAME - Database Host

    Note: The following can be used to quickly get started setting up your local development database.

    psql -c 'create database {DATABASE NAME};' -U postgres
    psql -c "create user {DATASBASE USER NAME} with password '{PASSWORD}';" -U postgres
  2. If your configuration needs are more demanding than this, further configuration can be established by modifying the storage configuration file config/config.js.

Once configured, you will be able to start the application. yarn dev or yarn start will suffice depending on your needs for running Locksmith.

Persistence Information

General database administration is out of scope for this document; it is generally advised to provide the database user associated with the application with only the permissions required.

In development mode, migrations will run upon start up ensuring that your persistence layer is up to date. In production, migrations will need to be performed manually. This can be performed via yarn db:migrate. Please review the migrations included so that you are aware of the items included.

Testing

Tests can be run via yarn test. Please note that the project includes end-to-end tests that will require database access.

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.