Skip to content

WeaveCraft/Quote-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quote-App

Local Development


Prerequisites


Quick start

Install:

  • Docker and docker compose
  • Vs code
  • When the project is open for the first time, click yes to install the recommended extensions from the popup shown in the bottom right corner. Alternative go to extensions page in the Vs Code menu to the left and search and install Dev Containers

Windows notice

Windows wants to change the execution file mode on shell files

Run:

git config --local include.path ../.gitconfig

Which will include the configuration in the root dir.

There is also a .gitattributes that will infer line ending styles on different files.

Shell scripts needs LF as line ending otherwise they will not work when running from windows os and is inferred by the .gitattributes file.

ssh-agent

To be able to interact (git pull, git push etc.) with the git repository from inside the dev container, an ssh-Agent needs to be running.

Following configurations will start the ssh-agent automatically when a terminal window is open.

Windows

Open a new PowerShell instance

Make sure you're running as an Administrator

Set-Service ssh-agent -StartupType Automatic
Start-Service ssh-agent
Get-Service ssh-agent

Linux/Mac

Note: Mac usually has a ssh-agent running


check if ssh-agent by running this command in a terminal window

pgrep ssh-agent

Update your shell config e.g. ~/.bashrc, ~/.zshrc.

if [ -z "$SSH_AUTH_SOCK" ]; then
   # Check for a currently running instance of the agent
   RUNNING_AGENT="`ps -ax | grep 'ssh-agent -s' | grep -v grep | wc -l | tr -d '[:space:]'`"
   if [ "$RUNNING_AGENT" = "0" ]; then
        # Launch a new instance of the agent
        ssh-agent -s &> $HOME/.ssh/ssh-agent
   fi
   eval `cat $HOME/.ssh/ssh-agent`
fi

Open a new terminal window or run

source ~/.<shell file> // replace shell file with which ever shell your using e.g bashrc or zshrc

Starting Dev Container

When the project is open with the Dev Containers extension installed, Click the popup button Reopen in Container in the right bottom corner.

Alternative open Command Palette Ctrl+Shift+P and run the command Dev Containers: Rebuild and Reopen in Container or Dev Containers: Reopen in Container where the first command will rebuild the entire container.

Initial, this will take some time to build the container. A button will show up in the bottom right corner which you can click to show the build process in the terminal window.

When the container have been built and starting up, the dotnet project will start automatically.

The backend can be reached on https://localhost:3001 and the frontend on https://localhost:3000 (Can take some time to load the first time)


To manually start the project

standing in the /workspaces/cleaners-opanel/ directory, run ./scripts/develop.sh or use dotnet cli by running dotnet watch --project src/Web and cd src/frontend && npm run dev

Test suits can be run by running dotnet test for a single test run or dotnet watch test --project Tests/Web.Tests to have hot-reloading while writing tests.

Preview of the application

image image image image image

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors