CSR Install

The CSR Application was developed to further assist our customers using our CERES program as well as help any potential customer with customer service.

 

Node.js & Code Editor Instructions

  1. Install Visual Studio Code — https://code.visualstudio.com/

  2. Install Node.js — https://nodejs.org/en/

  3. Install Git — https://git-scm.com/downloads

  4. Open Visual Studio Code.

  5. Use the following Shortcut to open the terminal window.

     Ctrl + ` (Tilda is located under the esc key)
  6. In the select box in the top right of the terminal window. Open the select box and then click “Select Default Shell”

  7. Select “Git Bash” as default shell. (This may require a restart)

  8. If it does require a restart, go ahead and restart.

  9. If you had to restart Visual Studio Code, open the terminal window again.

     Ctrl + `
  10. Let’s make sure Node.js is installed properly.

    node --version
    • if you get a response like “v12.0.0” Its installed correctly.

 

 

 

Configuring SQL Server Express & Management Studio

  1. Install Microsoft SQL Server Express - https://www.microsoft.com/en-us/sql-server/sql-server-downloads

  2. Install MSSQL Server Management Studio - https://docs.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms?view=sql-server-ver15

  3. In the Connection Pane that loads when you first launch MSSMS (Microsoft SQL Server Management Studio)

    • Under Server Name, Click ”< browse for more >”
    • Click the plus button next to Database Engine and select the local instance.
    • Using Windows Authentication (The Default) connect to the server.
  4. Right Click the Database Instance name then click properties.

    • Example of instance name: “PCNAME\SQLEXPRESS”
  5. In the top left, under the options select “Security”

  6. Under the “Server Authentication”, click the SQL Server and Windows Authentication” mode.

 

Creating A User Login

  1. Under the Database Instance, open up the “Security” folder.

  2. Right click the “Logins” folder and click “New Login”

  3. Type In Login Name

  4. Select SQL Server Authentication

  5. Enter in Password and confirm it.

  6. Uncheck the following boxes:

    • Enforce Password Policy
    • Enforce Password Expiration
    • User Must Change Password At Next Login
  7. Then click “Ok”

 

Setting Up SQL Server Browser and TCP Info

  1. Go To The Windows Search Box and search for the following.

    SQL Server
  2. You should see an option labeled as SQL Server (Year) Configuration Manager. Open This.

    • Ex: SQL Server (2017) Configuration Manager
  3. Click the arrow to the left of “SQL Server Network Configuration Not the 32 bit option

  4. Right click “Protocols for SQLEXPRESS” and click “Open”

  5. Right Click TCP/IP and click “Enable”

    • If it tells you changes won’t change until its restarted, you can disregard that for now. We will do that later on.
  6. Right Click TCP/IP again and click “Properties”

  7. At the top of the box that pops up, select the “IP Addresses” tab

  8. Scroll all the way to the bottom of the list.

    • You will see a section labeled “IPALL”
    • Inside that section, type in 1433 in the TCP Port Box.
    • Click apply and ok.
      • Again, if it tells you changes won’t change until its restarted disregard for now. We will do that later on.

 

Setting Up The Services

  1. Look over to the menu all the way to the left. You should see a list of options:

    • SQL Server Services
    • SQL Server Network Configuration (32Bit)
    • SQL Native Client 11.0 Configuration (32Bit)
    • SQL Server Network Configuration
    • SQL Native Client 11.0 Configuration
  2. You want to right click the “SQL Server Services”and click “Open”

  3. Right click the “SQL Server Browser” and click “properties”

  4. At the top is 3 tabs, click the “Service” tab.

  5. Change the “Start Mode” option to automatic

  6. Click “Apply” and “Ok”

  7. Right click SQL Server (SQLEXPRESS) and click “Restart” Not The Agent Option

  8. Then right click SQL Server Browser and click “Start”

 

You should now be able to connect to the database with sequelize now using SQL Server Authentication.

 

 

 

 

Visual Studio Code Extensions

  1. Bracket Pair Colorizer by CoenraadS
  2. Auto Rename Tag by Jun Han
  3. IntelliSense For CSS class names in HTML by Zignd
  4. JavaScript (ES6) Code Snippets by charalampos karypidis
  5. Live Sass Compiler by Ritwick Dey
  6. Live Server by Ritwick Dey
  7. Material Icon Theme by Phillipp Kief
  8. Prettier - Code formatter by Prettier

 

Installing TeamViewer

  1. Install TeamViewer Client - https://www.teamviewer.com/en-us/download/windows/

  2. Once installed, open the application

  3. In the top ribbon, click the “Extras” button.

    • Select “Options”
    • Under the general tab, click the checkbox labeled “Start TeamViewer With Windows”.
    • It will prompt you for a password. Enter and confirm one.
    • Click “Ok”
  4. Now, just take note of the ID and the password you entered.

  5. The system can now be accessed for debugging purposes.

 

 

Installing The Application Files.

  1. Open Visual Studio Code

  2. Open the terminal window if it did not open automatically.

     Ctrl + `
  3. You want to navigate to the “C” drive on the machine.

  4. Enter the following command to take you to the C drive on your computer

     cd C:
  5. You will want to check that the changes took place, copy the following into your terminal window.

     pwd
  6. It should read something similar to “/c”

  7. If it doesn’t repeat step 4.

  8. Next, copy this into your terminal and hit enter.

     git clone https://github.com/ItsYaBoyFish/CSR.git
  9. It may ask for a password and or username to continue, if so ask Austin.

  10. Once the files have been generated, cd into the application’s folder and type:

    cd CSR/
  11. Then type the following to install all the dependencies needed to run.

    npm install
  12. Next, install the PM2 package.

    npm install pm2 -g
  13. Now, Open The File Explorer

    • Navigate to the C Drive
    • Open the CSR folder
    • Click the Start-CSR-Server.bat file.
  14. The application will now run in the background. So anyone can access the application through the applications URL.