Skip to content

Commit

Permalink
Initial commit from Create Next App
Browse files Browse the repository at this point in the history
  • Loading branch information
Scobiform committed Sep 3, 2024
0 parents commit 4811608
Show file tree
Hide file tree
Showing 43 changed files with 3,638 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local

# vercel
.vercel
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.17.0
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# 🍃 Next.js Leaflet Starter

Jumpstart your new Next.js mapping project with Leaflet!

## ⚡ Quick Deploy
[![Deploy with Vercel Now](https://zeit.co/button)](https://vercel.com/import/project?template=https://github.com/colbyfayock/next-leaflet-starter) [![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/colbyfayock/next-leaflet-starter)


## 🧰 What This Includes
* [Next.js](https://nextjs.org/)
* [Leaflet](https://leafletjs.com/)
* [React Leaflet](https://react-leaflet.js.org)

## 🚀 Getting Started

### Requirements

### Quick Start

```
npx create-next-app -e https://github.com/colbyfayock/next-leaflet-starter
```

### Running the Project
First, run the development server:

```bash
npm run dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

You can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file.
9 changes: 9 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"compilerOptions": {
"baseUrl": "./",
"paths": {
"@components/*": [ "src/components/*" ],
"@styles/*": [ "src/styles/*" ]
}
}
}
23 changes: 23 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
const path = require('path');
const CopyPlugin = require('copy-webpack-plugin');

/** @type {import('next').NextConfig} */

const nextConfig = {
reactStrictMode: true,
webpack: (config) => {
config.plugins.push(
new CopyPlugin({
patterns: [
{
from: 'node_modules/leaflet/dist/images',
to: path.resolve(__dirname, 'public', 'leaflet', 'images')
},
],
}),
)
return config
}
}

module.exports = nextConfig;
Loading

0 comments on commit 4811608

Please sign in to comment.