A website showcasing travel destinations built with TypeScript, Next.js, and Prismic, and styled with Chakra UI.
Home Page | North America Page |
---|---|
- Node.js
- Yarn package manager
- Prismic API credentials.
- Clone the repository
git clone https://github.com/Feelpe/next-countries.git
- Enter the project directory:
cd next-countries
- Install the dependencies
yarn install
- Create a Prismic repository and set up your Prismic API credentials by creating a
.env.local
file and adding the following:
PRISMIC_ACCESS_TOKEN=YOUR_PRISMIC_ACCESS_TOKEN
Replace YOUR_PRISMIC_ACCESS_TOKEN
with your Prismic API Access Token.
- And go to
sm.json
to set the endpoint of your app
Replace YOUR_PRISMIC_API_ENDPOINT
with your Prismic API ENDPOINT.
- Create a new Custom Type using
slicemachine
:
yarn slicemachine
- Follow this example (remember to login into the slicemachine).
- Now you can go to the prismic dashboard and add all the content that you want (the continents and countries if you want to maintain the idea).
- Running the application
yarn dev
- The application will be available at http://localhost:3000 in your browser.
This project is licensed under the terms of the MIT license.