- NextJS v^10.1.3
- ReactJs v16.8.6
- Typescript v3.8.2
- StyledComponents v5.0.1
- Yarn Package Manager
- Node version 12.x, (Use NVM to manage node versions)
git clone git@github.com:GainorB/nextjs-typescript.git name-of-folder
cd name-of-folder
yarn install
yarn dev
On every push to github, yarn will automatically run the below pre-push hooks. If these checks pass, your code should be good to be raised as a PR.
yarn lint && yarn tsc
yarn start
Run now
in the project directory to link project to Zeit.
Learn More
- ONLY do this the first time the project is being setup with
now
. - Run
yarn global add now
ornpm i -g now
to installnow
globally. - Run
now
in your project root. - Follow the command line prompts.
- Now will use your project's directory name to search the Big Human Organization on Zeit.
- If it exists,
now
will automatically link your project's local directory to the project in Zeit. - If it doesn't exist, the
now
cli will prompt you to create and link the project.
- If it exists,
- At the end, you will notice a
.now
directory locally. This new directory will automatically be added to your.gitignore
.