Skip to content

Commit

Permalink
docs: 📝 write contributing.md
Browse files Browse the repository at this point in the history
  • Loading branch information
SophiaH67 committed May 15, 2024
1 parent 0a12e9b commit b46c08b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
API_URL=https://api.print.one
API_KEY=live_abcdefghijklmnopqrstuvwxyz0123456789
23 changes: 23 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Contributing Guide

## Setting up development environment

### Prerequisites

- Node.js
- npm

### Steps

1. Clone the repository with `git clone https://github.com/Print-one/print-one-js.git`
2. Enter the repository, and run `npm install` to install all dependencies.
3. Run `npm run test` to run the tests. NOTE: This requires you to have followed the setting up test environment steps (see below).

## Setting up test environment

To setup the test environment, copy over the `.env.example` file to `.env` and fill in the required values.
To then run the tests, run `npm run test`.

## Pull Requests

Make sure when submitting a pull requests that your code passes the tests, and that you have written tests for any new features or bug fixes.

0 comments on commit b46c08b

Please sign in to comment.