/ vendure/create myapp
vendure 설치 및 개발용 서버 실행
npx @vendure/create myapp
cd myapp && npm run dev
windows-build-tools
설치
windows-build-tools
은 이제 node js 에 들어가 있어서 따로 설치는 필요없다.
vendure 생성 및 실행
- npx @vendure/create myapp
- cd myapp
- npm run dev
database 를 선택할 때 참고
npm run build && npm run start
하는 경우
- mariaDB 는 문제가 있다.
- create table 을 보면 auto_increment 가 설정되어 있지 않는다.
- 그래서 db record를 insert하는 경우에 실패한다.
- postgresql 은 잘 동작한다.
d:\venduretest>npx @vendure/create myapp
Need to install the following packages:
@vendure/create
Ok to proceed? (y) y
Welcome to @vendure/create v1.9.2!
Let's configure a new Vendure project. First a few questions:
√ Which database are you using? » SQLite
√ What identifier do you want to use for the superadmin user? ... superadmin
√ What password do you want to use for the superadmin user? ... superadmin
√ Populate with some sample product data? ... no / yes
Setting up your new Vendure project in d:\venduretest\myapp
This may take a few minutes...
√ Installing dependencies
√ Installing dependencies
√ Generating app scaffold
√ Initializing server
Success! Created a new Vendure server at d:\venduretest\myapp
We suggest that you start by typing:
cd myapp
yarn dev
Happy hacking!
d:\venduretest>cd myapp
d:\venduretest\myapp>npm run dev
> myapp@0.1.0 dev
> concurrently yarn:dev:*
yarn run v1.22.19
yarn run v1.22.19
$ ts-node ./src/index.ts
$ ts-node ./src/index-worker.ts
[worker] info 23. 1. 30. 오후 10:29 - [Vendure Worker] Bootstrapping Vendure Worker (pid: 8888)...
[server] info 23. 1. 30. 오후 10:29 - [Vendure Server] Bootstrapping Vendure Server (pid: 12072)...
[worker] info 23. 1. 30. 오후 10:29 - [Vendure Worker] Vendure Worker is ready
[worker] info 23. 1. 30. 오후 10:29 - [JobQueue] Starting queue: apply-collection-filters
[worker] info 23. 1. 30. 오후 10:29 - [JobQueue] Starting queue: send-email
[worker] info 23. 1. 30. 오후 10:29 - [JobQueue] Starting queue: update-search-index
[server] info 23. 1. 30. 오후 10:29 - [AssetServerPlugin] Creating asset server middleware
[server] info 23. 1. 30. 오후 10:29 - [EmailPlugin] Creating dev mailbox middleware
[server] info 23. 1. 30. 오후 10:29 - [AdminUiPlugin] Creating admin ui middleware (prod mode)
[server] info 23. 1. 30. 오후 10:29 - [RoutesResolver] HealthController {/health}:
[server] info 23. 1. 30. 오후 10:29 - [RouterExplorer] Mapped {/health, GET} route
[server] info 23. 1. 30. 오후 10:29 - [NestApplication] Nest application successfully started
[server] info 23. 1. 30. 오후 10:29 - [Vendure Server] ================================================
[server] info 23. 1. 30. 오후 10:29 - [Vendure Server] Vendure server (v1.9.2) now running on port 3000
[server] info 23. 1. 30. 오후 10:29 - [Vendure Server] ------------------------------------------------
[server] info 23. 1. 30. 오후 10:29 - [Vendure Server] Shop API: http://localhost:3000/shop-api
[server] info 23. 1. 30. 오후 10:29 - [Vendure Server] Admin API: http://localhost:3000/admin-api
[server] info 23. 1. 30. 오후 10:29 - [Vendure Server] Asset server: http://localhost:3000/assets
[server] info 23. 1. 30. 오후 10:29 - [Vendure Server] Dev mailbox: http://localhost:3000/mailbox
[server] info 23. 1. 30. 오후 10:29 - [Vendure Server] Admin UI: http://localhost:3000/admin
[server] info 23. 1. 30. 오후 10:29 - [Vendure Server] ================================================
See Also
- 쿠…sal: [컴] vendure 의 admin ui extension 만들기
- 쿠...sal: [컴][웹] next.js commerce + vendure 서버 실행
- 쿠...sal: [컴][웹] vendure 사용해 보기 : vendure의 source 로 build 해서 run
- 쿠...sal: [컴] vendure server 실행하기
댓글 없음:
댓글 쓰기