diff --git a/docs/source/server/installation.rst b/docs/source/server/installation.rst index 01e6f9a..8c072ba 100644 --- a/docs/source/server/installation.rst +++ b/docs/source/server/installation.rst @@ -16,11 +16,28 @@ Follow these steps to set up and run the AREA Client Web project. .. code-block:: sh cd AREA/server - // TODO: define the command to install the GO packages + go mod tidy -3. Run the project +This command will ensure all required dependencies are downloaded and your go.mod and go.sum files are up to date. + +3. Set Up the Environment Variables +------------------ +.. code-block:: sh + + cp .env.example .env + +Update the .env file with the required environment variables. + +4. Run the project ------------------ .. code-block:: sh go run + +alternatively, you can run the project with the following command: + +.. code-block:: sh + + go build -o area-server main.go + ./area-server diff --git a/server/internal/utils/auth.go b/server/internal/utils/auth.go index 3a33012..c1f87fe 100644 --- a/server/internal/utils/auth.go +++ b/server/internal/utils/auth.go @@ -6,7 +6,7 @@ import ( ) func HashPassword(password string) string { - salt := []byte("randomSalt") // Ideally, generate a unique salt per user + salt := []byte("randomSalt") hash := argon2.IDKey([]byte(password), salt, 1, 64*1024, 4, 32) return base64.RawStdEncoding.EncodeToString(hash) }