Skip to content

dennischen/nextspace-demo

Repository files navigation

This is a demo application for nextspace(https://github.com/dennischen/nextspace) base on nextjs

Getting Started

Clone with nextspace submodule

git clone git@github.com:dennischen/nextspace-demo.git --recursive

Directory

  • /src : The demo source code
  • /cypress : The auto test code and data
  • /nextspace : Nextspace submodule reference

Installation

yarn install

Compile nextspace submodule

cd nextspace

#installation for submodule
yarn install

yarn dist
# or watch for running nextspace in nextjs dev
yarn dist-watch

Run the development demo server:

yarn dev

Open http://localhost:3000 with your browser to see the result.

Auto test

Run the auto test by cypress test framework

yarn test
# or
yarn test:e2e

# or open and run manually
yarn test:e2e:open

Production

# build
yarn build
# then
yarn start
# or just
yarn build-start

Docker image

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

Oneline demo

Here is a online demo at http://demo.colaorange.net/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published