A starter template for FaasJS.
- Click
Code
->Codespaces
->Create codespace on main
. - Wait for the codespace to be created.
- In VS Code, open a new terminal and run
ni && nd
(shorten command ofnpm install && npm run dev
). - Enjoy!
- Latest stable macOS
- Latest stable Docker https://www.docker.com/
- Latest stable Visual Studio Code https://code.visualstudio.com/
- Use VS Code to open project.
- Install VS Code extension:
ms-vscode-remote.vscode-remote-extensionpack
. - In VS Code, click
F1
then chooseRemote-Containers: Reopen in Container
. - In VS Code, open a new terminal
ni && nd
(shorten command ofnpm install && npm run dev
). - Open
http://localhost:5173/
in browser.
Run nt
(shorten command of npm run test
).
- Run
nb
(shorten command ofnpm run build
), this will build frontend by Vite. - Run
nr server
(shorten command ofnpm run server
), this will start the server. - Open
http://localhost:3000/
in browser.
- Run
docker build -t faasjs-starter .
to build the Docker image. - Run
docker run -p 3000:3000 faasjs-starter
to start the container. - Open
http://localhost:3000/
in browser.