Skip to content
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.

andwoo/template-react-redux-scss-asp

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

⚠️ Deprecated ⚠️

This template is no longer maintained. I haven't used this template personally for a long time and decided to focus on maintaining my two primarily used templates. Please consider choosing one of these for your project:


Build Instructions

  1. Install C# dependencies with command dotnet restore in the root directory.
  2. Install client dependencies with command yarn in the client directory.
  3. Running the application can be done with the F5 .vscode/launch.json command.

Building With Docker

  1. Build the Dockerfile with the below command in the root directory.
docker image build -t {image_name} .
  1. To see all the images run the command
docker images
  1. Run the container with the command
docker container run --publish 8888:80 --detach --name {container_name} {image_name}
--publish asks Docker to forward traffic incoming on the host’s port 8888, to the container’s port 80 (containers have their own private set of ports, so if we want to reach one from the network, we have to forward traffic to it in this way; otherwise, firewall rules will prevent all network traffic from reaching your container, as a default security posture).

--detach asks Docker to run this container in the background.

Docker Clean Up

Remove Images/Repositories

  1. List images with command
docker images
  1. Remove repository by name
docker rmi {image_name}

Remove Container

Remove by container name

docker container rm --force {container_name}

Remove by container id

  1. List container ids
docker container ls -a
  1. Remove the container with the id
docker container rm --force {container_id}

Remove Others

  1. This command will remove all stopped containers, all dangling images, and all unused networks
docker system prune

About

Template repository for React, Redux, SCSS projects with an ASP backend.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published