Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 1.25 KB

developing.md

File metadata and controls

48 lines (35 loc) · 1.25 KB
id title sidebar_label path lastModified
install
Developing
Developing
Docs / Contributing / Developing
2021-10-02

As a developer, you will probably want to install the database on your local machine, so you can edit the source code and run the tests immediately.

Dependencies

Other than a working operating system, the only dependency you need to have installed is NodeJS (14 or higher).

Source Code

You can clone and install the code base by running the following commands in your terminal.

git clone https://github.com/canhazdb/server.git canhazdb-server
cd canhazdb-server
npm install

Once installed, you should run the tests, to make sure everything is working fine.

npm run test

To run the database normally, you can execute the CLI using the command below:

node lib/cli.js --help

Alternatively you can link the cli globally:

npm link

This will allow you to run from anywhere on your computer:

canhazdb-server --help

Need help?

I really care about the "developer experience" of the canhazdb project. If this page doesn't work perfectly first time, please raise an issue.