Skip to content

use Nextjs, Typescript, ESLint Airbnb Style, Prettier, TailwindCss, Docker

Notifications You must be signed in to change notification settings

sonsu95/next-nextui-template

Repository files navigation

Before to use

This template is using pnpm. If you are using a package manager other than pnpm, please replace the pnpm-lock.yaml* part of dev.Dockerfile with the appropriate lock file for your package manager

You need to add the following code to your .npmrc file: .npmrc file is in your local root directory For example, if you use mac OS, you can find it in the following path: /home/[USERNAME]/.npmrc

# .npmrc  
public-hoist-pattern[]=*@nextui-org/*
# install dependencies in local
pnpm install

Modify your dev.Dockerfile and docker-compose.yml name

in dev.Dockerfile

change WORKDIR to your own project name

WORKDIR /home/template => WORKDIR /home/blog

in docker-compose.yml

change the service name, container name, and volumes path to your own project name

  template:
    container_name: "next-nextui"
...
  volumes:
    - ./:/home/template
    - /home/template/node_modules

to

  blog:
    container_name: "my-blog"
...
  volumes:
    - ./:/home/blog
    - /home/blog/node_modules

Getting Started

in development

# copy .env.example to .env
cp .env.example .env

# install dependencies in local
pnpm install

# open docker desktop

# build and run docker container
docker compose up --build -d

then, have fun with your project!

About

use Nextjs, Typescript, ESLint Airbnb Style, Prettier, TailwindCss, Docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published