Implementation examples for most common stacks and use-cases
# clone project and access this example
git clone [email protected]:placekit/examples.git placekit-examples
cd placekit-examples
# install dependencies
npm install
# create .env file
cp .env .env.local
Open the .env.local
file and replace <your-api-key>
with a PlaceKit API key.
Reminder: never commit an API key.
Then run:
npm run dev -w=<example-dir-name>
replacing <example-dir-name>
with the directory name of the example you want to try.
- We're only using TailwindCSS as a convenience for the basic styling of the examples.
- To turn on dark mode on autocomplete, add
.dark
class ordata-theme="dark"
to<body>
in any autocomplete example.