Description Here...
Install MongoDB Community with Docker
docker pull mongodb/mongodb-community-server:latest
docker run -d -v ./mongodb:/data/db --name mongodb -p 27017:27017 mongodb/mongodb-community-server
If you have previously installed MongoDB locally, to disable it:
- Press: Win + R
- Type services.msc
- Find the "MongoDB Server (MongoDB)" service and select "Stop"
docker pull redis
docker run -d --name redis -p 6379:6379 redis
Microsoft - Quickstart: Run SQL Server Linux container images with Docker
docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=<REPLACE_THIS_WITH_YOUR_STRONG_PASSWORD>" -p 1433:1433 --name mssql-express -v ./mssql-data:/var/opt/mssql -d mcr.microsoft.com/mssql/server:2022-latest
Upon running the following command, MSSQL Express by default creates an account with the following details:
Username: "sa"
Password: <REPLACE_THIS_WITH_YOUR_STRONG_PASSWORD>
As a "best practice", you would typically disable the sa account - As Per Microsoft
However, that is completely up to you, since we are intending to run it in an offline environment. If you wish to disable it, refer to "Additional Notes" at the end of the README for a guide to perform it, otherwise, carry on with the setup.
To allow the Daily-Dashboard-Backend to connect to your hosted MSSQL Express DB, specify the following details inside the .env file, and the application will automatically read in those details.
MSSQL_USERNAME=<YOUR_USERNAME>
MSSQL_PASSWORD=<YOUR_PASSWORD>
Note: Ensure that you follow the exact naming of the environment variables.
When developing the project, you may install packages from here: https://pkg.go.dev/
We will be using Microsoft - SQL Server Management Studio (SSMS) to perform the following task. Install it if you do not have it yet.
Server Name: localhost,1433
Authentication: SQL Server Authentication
Login: sa
Password: <REPLACE_THIS_WITH_YOUR_STRONG_PASSWORD>
- Expand the
Server Instance, and then expand theSecurityFolder - Right-click on the
Loginsfolder and selectNew Login - In the pop-up, enter your
Login Name(e.g. NewAdmin) - Select
SQL Server Authenticationand enter astrong password - Click OK to create the login
- Expand the
Server Instance, and then expand theSecurityFolder - Right-click on the newly created
Login Name(e.g., NewAdmin) and selectProperties - In the pop-up, go to the
Server Rolespage - Check the
sysadminrole to add the login to this role - Click OK to save the changes
- Expand the
Server Instance, and then expand theSecurityFolder - Right-click on the
saaccount and selectProperties - In the pop-up, go to the
Statuspage - Under
Login, selectDisabled - Click OK to save the changes
- Disconnect from the Database and verify that your new account works, and the SA account is disabled