Look at the nuxt 3 documentation to learn more.
First create your new repository for a project you're creating.
Then clone this repository and push it to your new repository:
git clone git@github.com:dentsu-cz/nuxt-template.git
mv nuxt-template name-of-your-repository ## or rename instead of mv on Windows
cd name-of-your-repository
git remote set-url origin git@bitbucket.org:isobarczechrepublic/name-of-your-repository.git
git remote add template git@github.com:dentsu-cz/nuxt-template.gitNow setup branches and tags (these can be launched all at once (just copy&paste&enter all lines):
git branch master
git branch test
git branch devel
git tag init
git push -u origin master test devel initDon't forget to create test and devel branch and start your work from new branch based on devel.
TODO: create script that will do these initial steps automatically
First copy app/.env-local as app/.env
Then make sure to install the dependencies:
cd app # for all following commands always be in app folder
pnpm installStart the development server on http://localhost:3000
pnpm devIf using SSR, build the application for production:
pnpm build:productionIf not using SSR but SSG, use:
pnpm generate:productionBoth generate and build commands can also be used with :test instead of :production for testing environment. Test environment should have password protection defined in .env-test file.
Checkout the deployment documentation for more information.