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 [email protected]: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 [email protected]:isobarczechrepublic/name-of-your-repository.git
git remote add template [email protected]:dentsu-cz/nuxt-template.git
Now 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 init
Don'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 install
Start the development server on http://localhost:3000
pnpm dev
If using SSR, build the application for production:
pnpm build:production
If not using SSR but SSG, use:
pnpm generate:production
Both 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.