$ git clone [email protected]:primer-io/integration-walkthrough.git
$ cd ./integration-walkthrough
Install the dependencies using yarn or npm.
# With yarn
$ yarn
# With npm
$ npm i
Grab your API Key, or create a new API Key, from Primer's dashboard.
Clone env.example
and name the cloned file .env
.
$ cp env.example .env
Open .env
and set the environment variable API_KEY
with the API key available on your dashboard.
API_KEY=1234-1234-1234-1234 # Your Primer API Key
# With yarn
$ yarn start
# With npm
$ npm start
The server is deployed on port 8880 by default. You can change the port by setting the PORT
environment variable in the .env
file.
Check the checkout at http://localhost:8880/.