This is a demo application for nextspace(https://github.com/dennischen/nextspace) base on nextjs
Clone with nextspace submodule
git clone git@github.com:dennischen/nextspace-demo.git --recursive
- /src : The demo source code
- /cypress : The auto test code and data
- /nextspace : Nextspace submodule reference
yarn install
cd nextspace
#installation for submodule
yarn install
yarn dist
# or watch for running nextspace in nextjs dev
yarn dist-watch
yarn dev
Open http://localhost:3000 with your browser to see the result.
Run the auto test by cypress test framework
yarn test
# or
yarn test:e2e
# or open and run manually
yarn test:e2e:open
# build
yarn build
# then
yarn start
# or just
yarn build-start
After build the procution (by yarn build), use docker to build a image and run demo as a container
# docker image
docker build . -t nextspace-demo
# run container
docker run -it -p 3000:3000 nextspace-demo
Here is a online demo at http://demo.colaorange.net/