Next.js starter kit for Wunder projects.
- Ready to be deployed to Silta
- TypeScript setup
- Prettier, ESLint
- husky and lint-staged
- Env files
- Click Use this template to generate a new project.
- Select correct owner
- Name the project as client-COUNTRYCODE-CLIENT-PROJECT
- Make the repository private (unless the project is public)
- git clone the project in your machine and modify project details:
- silta/silta.yml
- See values to override.
- package.json
- silta/silta.yml
- Log in to CircleCI using your Github account and add the new project using existing config.
- 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 are the same as the Next.js requirements for the version you are using.
- Install the NPM packages:
npm i
- Run the NextJS app in development mode:
npm run dev
Run "npm run lint" and it will show if there are any errors.
- Make sure you have LF selected as line ending in your editor.
- 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.