This README will get you started and guide you through the project
Photo contest APP is a Next.js app for the Runtime Revolution photo contest that takes place every month and aims to allow a fair and easy voting for all participants. It works with the Photo contest API.
Copy .env.local.sample to .env.local
cp .env.local.sample .env.local
Install pre-commit
brew install pre-commit
Install the project's pre-commit hooks
pre-commit install # or pre-commit install -f to overwrite existing hooks
Install nvm
brew install nvm
echo 'export NVM_DIR="$HOME/.nvm"' >> ~/.zshrc
echo '[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh"' >> ~/.zshrc
echo '[ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm"' >> ~/.zshrc
Install the project's node version
nvm install
nvm use
The basic npm scripts for a next.js app:
npm install # Install dependencies
npm run dev # Run next.js in development mode
npm run test # Run the tests
npm run build # Generate production build
npm run start # Run the app in production mode (requires build 1st)