A method, comprising: - treating a first brine stream comprising a plurality of minerals with an anti-scalant to produce a treated brine, wherein the first brine stream is provided by a wastewater treatment system; - directing the treated brine to a first nanofiltration system disposed downstream from and fluidly coupled to the wastewater treatment system; - generating a first NF permeate stream and a first NF non-permeate stream from the treated brine in the first NF system; - directing the first NF non-permeate stream to a mineral removal system disposed downstream from and fluidly coupled to the first NF system; - removing the plurality of minerals from the first NF non-permeate stream to generate a first overflow stream in the mineral removal system; - wherein the first overflow stream comprises at least a portion of the plurality of minerals; - routing a first portion of the first overflow stream to a hydrochloric acid (HCl) and sodium hydroxide (NaOH) production system disposed downstream from and fluidly coupled to the mineral removal system, wherein the HCI and NaOH production system comprises a second NF system configured to receive the first portion of the first overflow stream and to generate a second brine stream from the first portion of the first overflow stream; - directing the second brine stream to an ED brine feed tank; - directing a stream from the ED brine feed tank to a multi-bed ion exchanger; - directing a stream from the multi-bed ion exchanger to a first electrodialysis system disposed within the HCl and NaOH production system and fluidly coupled to the second NF system, wherein the first ED system is configured to generate HCl and NaOH from the second brine stream; and - directing the first NF permeate stream to a second ED system disposed upstream of and fluidly coupled to the HCI and NaOH production system, wherein the second ED system is configured to generate a third brine stream from the first NF permeate steam and to output the third brine stream to the ED Brine Feed Tank of the HCl and NaOH production system. - treating a first brine stream comprising a plurality of minerals with an anti-scalant to produce a treated brine, wherein the first brine stream is provided by a wastewater treatment system; - directing the treated brine to a first nanofiltration system disposed downstream from and fluidly coupled to the wastewater treatment system; - generating a first NF permeate stream and a first NF non-permeate stream from the treated brine in the first NF system; - directing the first NF non-permeate stream to a mineral removal system disposed downstream from and fluidly coupled to the first NF system; - removing the plurality of minerals from the first NF non-permeate stream to generate a first overflow stream in the mineral removal system; - wherein the first overflow stream comprises at least a portion of the plurality of minerals; - routing a first portion of the first overflow stream to a hydrochloric acid (HCl) and sodium hydroxide (NaOH) production system disposed downstream from and fluidly coupled to the mineral removal system, wherein the HCI and NaOH production system comprises a second NF system configured to receive the first portion of the first overflow stream and to generate a second brine stream from the first portion of the first overflow stream; - directing the second brine stream to an ED brine feed tank; - directing a stream from the ED brine feed tank to a multi-bed ion exchanger; - directing a stream from the multi-bed ion exchanger to a first electrodialysis system disposed within the HCl and NaOH production system and fluidly coupled to the second NF system, wherein the first ED system is configured to generate HCl and NaOH from the second brine stream; and - directing the first NF permeate stream to a second ED system disposed upstream of and fluidly coupled to the HCI and NaOH production system, wherein the second ED system is configured to generate a third brine stream from the first NF permeate steam and to output the third brine stream to the ED Brine Feed Tank of the HCl and NaOH production system.