-
Download and install NodeJS. Verify that
nodeandnpmare installed correctly by typingnode -v # Version 10.16.3 (or newer) npm -v # version 6.13.2 (or newer)
-
Download and install Bun. Verify
buninstallation by typingbun -v # version 1.1.x (or newer)
In the project top directory. Type bun install to install external dependencies required by the project. This command must be run when you try to build the project for the first time.
# Install external dependencies (required for the first time)
bun install# Start the app on a local server
bun app:serve
# Start both the app server and vitepress server
bun serveAfter typing bun app:serve, use your browser to open localhost:8080 (or whatever port number indicated by bun).
bun build # to build for production
bun docs:build # to build the documentationThe docs subdirectory is reserved for documentation files built using VitePress.
To view the documentation page:
bun docs:serveTo build the documentation page:
yarn docs:build # do this AFTER `bun build`After a successful document build, you will find a new directory dist/docs.
-
Build a docker image from
Dockerfiledocker build --tag DDDDDDDD/easelgeo .In order to push the image to Docker Hub
DDDDDDDDmust be your Docker Hub userid. -
(Optional) Push the image to Docker Hub
docker login -u DDDDDDDD # Then enter your Docker Personal Access Token (with Read, Write, Delete permission) docker push DDDDDDDD/easelgo -
Instantiate a container from the image and run locally
docker run -it -p 9000:80 DDDDDDDD/easelgeoThen open the URL
localhost:9000in your browser
-
Install netlify CLI (documentation)
npm install -g netlify -
Login to your Netlify account
netlify login -
Link your project
# This will prompt you to enter the project URL or ID netlify link -
Build and deploy (to production)
netlify build netlify deploy --prod