Coder Social home page Coder Social logo

havascx-google-analytics-nextjs's Introduction

Havas CX Istanbul Next.js Starterkit

Requirements

Production for Docker build and run

docker build --target application -t havas-cx-app .
docker run -p 3000:3000 havas-cx-app

Storybook for Docker build and run

docker build --target storybook -t havas-cx-storybook .
docker run -p 6006:6006 havas-cx-storybook

Getting started

Run the following command on your local environment to install the dependencies:

yarn install

Then, you can run locally in development mode with live reload:

yarn dev

Build:

yarn build

Stoybook:

yarn storybook

Open http://localhost:3000 with your browser to see your project.

├── README.md                # README file
├── public                   # Public folder containing static assets
├── locales                  # Localization Json files are kept in this folder
├── .storybook               # Storybook configuration
├── src
│   ├── components           # All Components
│   ├── layouts              # Common layout
│   ├── pages                # Next JS pages
│   ├── services             # Service integrations
│   └── shared
│       ├── hooks            # Common hooks
│       ├── styles           # Global styles
│       └── utils            # Global utilities
├── tsconfig.json            # TypeScript configuration
├── i18n.json                # Next-Translation configuration
├── next.config.js           # Next JS configuration
├── jest.config.js           # Jest configuration
└── tailwind.config.js       # Tailwind configuration

Deploy to production

You can see the results locally in production mode with:

$ yarn run build
$ yarn run start

The generated HTML and CSS files are minified (built-in feature from Next js).

You can create an optimized production build with:

yarn run build:prod

Available Scripts

├── dev                # NextJS Development Run
├── build              # NextJS Build
├── build:stats        # NextJS Bundle Analyze
├── build:types        # Types check and build
├── start              # NextJS Production Start
├── export             # NextJS Static Export
├── clean              # .next and out file cleaner
├── lint               # Eslint Check
├── lint:fix           # Eslint Check and Fix
├── forrmat            # Prettier Run
├── prepare            # Husky Install
├── cloc               # Package size controller
├── storybook          # Start Storybook development environment
├── build:storybook    # Build a static Storybook
└── test:unit          # Run Jest unit tests

havascx-google-analytics-nextjs's People

Contributors

mahmutcano 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.