Skip to content

serkon/themoviedb

Repository files navigation

It is a project developed with Next js that pulls data from The Movie Datase API.

NEXT JS Installation

  1. npx create-next-app nextjs-blog --use-npm --example "https://github.com/vercel/next-learn-starter/tree/master/learn-starter" npm run dev Starts the development server.

    npm run build Builds the app for production.

    npm start Runs the built app in production mode.

    We suggest that you begin by typing: cd nextjs-blog npm run dev

  2. npm install --save-dev typescript @types/react @types/node is install dependencies

  3. touch tsconfig.json create tsconfig file

  4. npm install tailwindcss postcss-preset-env postcss-flexbugs-fixes is install scss properties

  5. Add postcss.config.js to root with this content

// postcss.config.js
module.exports = {
  plugins: [
    'tailwindcss',
    'postcss-flexbugs-fixes',
    [
      'postcss-preset-env',
      {
        autoprefixer: {
          flexbox: 'no-2009'
        },
        stage: 3,
        features: {
          'custom-properties': false
        }
      }
    ]
  ]
}
  1. Add "tailwind.config.js" to root and its content
// tailwind.config.js
module.exports = {
  purge: [
    // Use *.tsx if using TypeScript
    './pages/**/*.js',
    './components/**/*.js'
  ]
  // ...
}
  1. npm install sass
  2. Add "next.config.js" to root and its SASS configuration
const path = require('path')

// includePaths
module.exports = {
  sassOptions: {
    includePaths: [path.join(__dirname, 'styles')],
  },
}

About

NextJS, Typescript, Bootstrap

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published