Coder Social home page Coder Social logo

felipesscreator / next-countries Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3.57 MB

A website showcasing travel destinations built with TypeScript, Next.js, and Prismic, and styled with Chakra UI.

JavaScript 1.01% TypeScript 98.99%
chakra-ui nextjs typescript

next-countries's Introduction

Next Countries - A Travel Destinations Website

Next JS TypeScript Chakra

Description

A website showcasing travel destinations built with TypeScript, Next.js, and Prismic, and styled with Chakra UI.

Home Page North America Page

Getting Started

Prerequisites

  • Node.js
  • Yarn package manager
  • Prismic API credentials.

Installation

  1. Clone the repository
git clone https://github.com/Feelpe/next-countries.git
  1. Enter the project directory:
cd next-countries
  1. Install the dependencies
yarn install
  1. 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.

  1. Create a new Custom Type using slicemachine:
yarn slicemachine
  • Follow this example (remember to login into the slicemachine).

slicemachine example

  • 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).
  1. Running the application
yarn dev
  1. The application will be available at http://localhost:3000 in your browser.

License

This project is licensed under the terms of the MIT license.

next-countries's People

Contributors

felipesscreator avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.