- Node.js (Version 14 or higher)
- npm (Version 6 or higher)
- Postgres database with Lantern extensions installed
-
Fork this repository to your own GitHub account and then clone it to your local device.
git clone https://github.com/your-username/lantern-js.git
-
Navigate to the cloned project directory and install the dependencies
cd lantern-js npm i
-
Copy the example environment file and configure it
cp .env.example .env
To check for linting errors:
npm run lint
To fix linting errors:
npm run lint:fix
To format the code using Prettier:
npm run prettier:format
To check if the code is formatted correctly:
npm run prettier:check
To fix linting errors and format the code:
npm run format
Ensure all tests pass before submitting a pull request. To run the tests:
npm test
To run the tests with coverage:
npm run coverage
Place your test files in the test/
directory.