Git Product home page Git Product logo

lanbackup's Introduction

Overview:

The goal of this system is to allow centralized backup of certain specified data (files and folders) into designated storage locations, inside internal network of the organization.

Used technologies: .NET, ASP.NET Core SPA with Angular2

System overview diagram: System Overview

Screenshots

Dashboard by Admin BackupConfigurations List BackupConfiguration Edit Logs List Users List Dashboard by Anonymous Profile Login

Quick Start:

  • check prerequisite:
  • download releases:
    • client: ...
    • server: ...
  • install server package on the server machine:
    • follow the instructions to deploy on IIS from https://docs.microsoft.com/en-us/aspnet/core/publishing/iis
    • update the appsettings.json file with necesary info:
      • AdminEmail: to match your own admin email
      • DefaultConnection connection string to point to an instance of MSSQL - used to store user membership data.
      • BackupsConnectionString connection string to point to an instance of MSSQL - used to store application data.
    • default admin user is admin@admin with password Admin$0. Use it on first app run and change the password and eventually grant Admin role to other users as well.
  • install agents setup on the client machines
    • configure "C:\Program Files (x86)\LanBackupAgent\LanBackupAgent.exe.config" file.
    • change webApiUrl setting to match your server IP and port configured above.
    • restart LanBackuAgent service in service console (services.msc).

Application architecture Component Interactions

Database schema Db Schema

Development Start

  • verify prerequisite:

  • clone this repo on your machine:

    git clone https://github.com/farcasclaudiu/LanBackup.git
    
  • open solution in Visual Studio, all solution packages are available online and normally should restore by themself when opening the solution, wait for all packages to be restored automatically.

  • Let's build

  • set startup project LanBackup.WebApp

  • RUN the app (F5 or Ctrl+F5).

  • Two databases defined in the project config file will be created automatically at the first run of the project. One database is for AspNetIdentity, the second is to hold app data.

  • To configure Microsoft Azure Application Insight I recommend setting in project "LanBackup.WebApp" the user secret file with a structure like:

    {
      "clientSettings": {
        "AdminEmail": "personal@personal",
        "InstrumentationEnabled": true,
        "InstrumentationKey": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
      },
      "ApplicationInsights": {
        "InstrumentationKey": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
      }
    }
    

    here the "clientSettings" are specific for JS client side app (Angular2) and the "ApplicationInsights" part is used on the ASP.NET CORE side

  • You might want to configure file ".\LanBackup.vs\config\applicationhost.config" with appropiate binding info : IP and port, if you wish to test it in your network

TODOs

  • Functional
    • show logs filtered by computer IP
    • paginated list with sorting and sort direction
  • Deployment
    • configure install and run in docker container
  • Testing
    • add more unit tests on webapi serverside
    • add more integrations tests on webapi server side
    • add more unit tests on angular client side

lanbackup's People

Contributors

farcasclaudiu avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.