Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mioe/seed
my beautiful monoproject
https://github.com/mioe/seed
fastify nuxt rest-api typescript vue
Last synced: 3 months ago
JSON representation
my beautiful monoproject
- Host: GitHub
- URL: https://github.com/mioe/seed
- Owner: mioe
- License: mit
- Created: 2022-06-14T19:54:24.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-26T11:15:03.000Z (about 2 years ago)
- Last Synced: 2023-03-05T03:30:53.232Z (almost 2 years ago)
- Topics: fastify, nuxt, rest-api, typescript, vue
- Language: TypeScript
- Homepage:
- Size: 1.27 MB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# seed
> my beautiful monoproject## required dependencies
- dev mode
- nodejs >= 16
- pnpm >= 6
- docker## first installation
```bash
pnpm install --shamefully-hoist # install packages
cd packages/backend # move to backend folder
cp .env.example .env # copy and change .env vars
npx prisma migrate dev # migrate tables
npx prisma generate # generate client dto
npx prisma db seed # seeding base data
openssl genrsa -des3 -out ./src/config/private.pem 2048 # generate private.key for jwt
openssl rsa -in ./src/config/private.pem -outform PEM -pubout -out ./src/config/public.pem # generate public.key for jwt
cd ../.. # move to root folder
docker-compose up # (optional) start db && nginx
pnpm dev # start hmr for all adm/backend/fronted
```## used ports
- in host
- nuxt (fronted) - http://localhost:3000
- fastify (backend) - http://localhost:3001
- swagger (backend) - http://localhost:3001/documentation
- vue (adm) - http://localhost:3002
- in nginx
- fronted - http://localhost:3030
- backend
- api - `localhost/api/*`
- storage - `localhost/storage/*`
- adm - http://adm.localhost:3030
- other
- postgres `:port=54320`
- redis `:port=63790`