Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 2.08 KB

README.md

File metadata and controls

52 lines (35 loc) · 2.08 KB

Wunder Next.js template

Next.js starter kit for Wunder projects.

Features

  • Ready to be deployed to Silta
  • TypeScript setup
  • Prettier, ESLint
  • husky and lint-staged
  • Env files

Getting started

  1. Click Use this template to generate a new project.
  2. Select correct owner
  3. Name the project as client-COUNTRYCODE-CLIENT-PROJECT
  4. Make the repository private (unless the project is public)
  5. git clone the project in your machine and modify project details:
    • silta/silta.yml
    • package.json
  6. Log in to CircleCI using your Github account and add the new project using existing config.
  7. After confirming the starter template is working as expected, developers are encouraged to update dependencies and keep them as up to date as possible throughout the lifetime of the project.

For additional instructions, please see the Silta documentation.

System requirements

Local development

  1. Install the NPM packages:
    npm i
  2. Run the NextJS app in development mode:
    npm run dev

Linting

Run "npm run lint" and it will show if there are any errors.

Linting for Windows users

  1. Make sure you have LF selected as line ending in your editor.
  2. If point 1 is not enough, try this command "git config --global core.autocrlf false".More info here https://stackoverflow.com/questions/25724969/sourcetree-line-ending-issue

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

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.