Execute the following commands to run the project locally in development mode:
npm install && npm run dev
The server will be available at http://localhost:3000
.
Run in production mode instead:
npm install && npm start
Not tested as the project is still in development.
To generate the TSDoc documentation, run the following command:
npm run docs:serve
Check .env.example
for the required environment variables.
Utilize ur systems capabilities to set the environment variables or create a .env
file in the root of the project and
set the variables there. Latter is suggested.
[!WARNING] Careful Make sure to never commit the
.env
file to the repository.
Check the.gitignore
file to see the.env
file is ignored.
We are using the following project structure:
.
├── pages # For Vue pages
├── components # For Vue components
├── composables # For composables (Vue composition API)
├── DB # All DDLs for the database
├── layouts # For Vue layouts
├── types # For TypeScript types
└── server # For the Nitro server
├── api # All API routes (route automatically defined as folder/file)
└── health.get.ts # eg, GET /api/health
└── utils # For server utilities
Please see the Nuxt Documentation for more detailed information.