- Install dependencies:
npm ci
- Create
.env.local
file and add OpenAI API to it:
OPENAI_API_KEY=<Your key here>
- Run the development server:
npm run dev
- Next.js as the React framework
- Tailwind CSS for styling
- Mantine UI component library
- TanStack Query for data fetching
- TypeScript as the programming language
- Prettier for formating code according to the rules
- ESLint for checking code quality and formatting
- Login or create a new OpenAI account
- Create a new secret key at API Keys page
- Copy the key and add it to the
.env.local
file in the root of the project asOPENAI_API_KEY
- Cities data from dr5hn/countries-states-cities-database
- Cities population data from lmfmaier/cities-json