This is Sourcegraph's Marketing Site which is a Next.js project bootstrapped with create-next-app
.
First, make sure that you have Node.js installed. You can use nvm
to automatically use the version of Node.js which is specified in the repository's .nvmrc
file:
nvm install
Alternatively, you can use n
to manage your Node versions. Use the following command to install the version of Node specified in the .nvmrc
file:
n <node version>
From the top level of the project, run the following command to install dependencies:
yarn ci
This will install the dependencies while ensuring the lock file remains unmodified.
To run the application, type the following command from the top level of the project:
yarn dev
Open http://localhost:3000 with your browser to see the result.
To enable our pre-commit hook, update the following git config setting in the project:
git config core.hooksPath .githooks