Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mon4ik/nestjs-nuxt-template
https://github.com/mon4ik/nestjs-nuxt-template
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mon4ik/nestjs-nuxt-template
- Owner: Mon4ik
- Created: 2023-09-16T09:41:51.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-16T09:42:33.000Z (about 1 year ago)
- Last Synced: 2024-10-10T11:24:34.329Z (28 days ago)
- Language: TypeScript
- Size: 155 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NestJS + Nuxt Template
**Also, template with:**
- Typeorm
- Migrations
- TailwindCSS## Set up
1. Clone repository
2. At [`backend/`](/backend):
```shell
yarn # install deps
yarn typeorm:migrate # generate && run migration
yarn start:dev # run in dev mode
yarn build # build production
```
3. At [`frontend/`](/frontend):
```shell
yarn # install deps
yarn dev # run in dev mode
yarn build # build production
```
## Usage
### Structure
(ignored some files)
```
.
├── backend
│ ├── README.md
│ ├── migrations
│ │ └── ...
│ ├── src
│ │ ├── ...
│ │ └── user
│ │ ├── user.controller.ts
│ │ ├── user.entity.ts
│ │ ├── user.module.ts
│ │ └── user.service.ts
│ ├── ...
│ ├── .env
│ ├── typeorm.config.ts
│ └── yarn.lock
├── frontend
│ ├── pages
│ │ └── ...
│ ├── public
│ │ └── ...
│ ├── server
│ │ └── ...
│ ├── ...
│ ├── App.vue
│ ├── nuxt.config.ts
│ ├── README.md
│ └── yarn.lock
├── .gitignore
└── README.md
```### `.env` example
```dotenv
PG_HOST="127.0.0.1"
PG_PORT="5432"
PG_USERNAME="postgres"
PG_PASSWORD=""
PG_DATABASE="testdb"
```