AdminVUE

VueJs Admin Template with .NET Core 5


Thank you for purchasing my script. If you have any questions that are beyond the scope of this help file, feel free to email me.

If you are looking for a Javascript framework based template for your upcoming project then probably you come to the right place.
 
AdminVUE is a light Admin template, developed based on modern Vuejs framework with Vuefify(new UI framework),
.NET core 5, Entity Framework core 5.0.6 & Vuex state management. The most amazing part of this template is, you have five popular Relational database connectivity options here.You have flexibility to choose Sql server, Mysql, Sqlite, PostgreSql and Oracle 12c+.
 
AdminVUE template consists of two separate project, one is AdminAPi project for API or you may call it service and the other is AdminClient project for UI or you may call it client for your API.
 
Both of the projects are developed separately and you have full flexibility to use them independently.
 
 
 

For Admin access, Username:admin@2021 Password:admin@2021

For User access, Username:user@2021 Password:user@2021

"ConnectionStrings": {

    "ApiConnStringMssql": "data source=Sangib-PC;initial catalog=AdminDB;
     persist security info=True;Integrated Security=SSPI;",

    "ApiConnStringMysql": "server=localhost;port=3306;database=AdminDB;user=root;",

    "ApiConnStringOracle": "Data Source=(DESCRIPTION=(ADDRESS_LIST=
    (ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))  
    (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orclpdb)));User Id=root;Password=root;",

    "ApiConnStringSqlite": "Data Source=AdminDB.db;",

    "ApiConnStringPostgreSql": "Server=127.0.0.1;Port=5432;Database=AdminDB;
    User Id=postgres;Password=postgres;"

  }

 

public void ConfigureServices(IServiceCollection services)

        {
            //Sql Server Connection String
            /* services.AddDbContextPool<AppDbContext>(opt => opt.UseSqlServer
            (Configuration.GetConnectionString("ApiConnStringMssql"))); */


            //Mysql Connection String
            services.AddDbContextPool<AppDbContext>(opt=>opt.UseMySql
            (Configuration.GetConnectionString("ApiConnStringMysql")));

            //Sqlite Connection String
            /* services.AddDbContextPool<AppDbContext>(opt=>opt.UseSqlite
            (Configuration.GetConnectionString("ApiConnStringSqlite"))); */


            //PostgreSql Connection String
            /* services.AddDbContextPool<AppDbContext>(opt=>opt.UseNpgsql
            (Configuration.GetConnectionString("ApiConnStringPostgreSql"))); */


            //Oracle Connection String
            /* services.AddDbContextPool<AppDbContext>(opt=>opt.UseOracle
            (Configuration.GetConnectionString("ApiConnStringOracle"))); */ 

 

               ->dotnet ef migrations add <MigrationName>

               ->dotnet ef database update

               ->dotnet run

        string GenerateJwtToken(UserInfo userInfo)
        {
            var securityKey=new SymmetricSecurityKey(Encoding.UTF8.GetBytes
                           (_config["Jwt:SecretKey"]));
            var credentials = new SigningCredentials(securityKey, 
                              SecurityAlgorithms.HmacSha256);
            var claims = new[]
            {
                new Claim(JwtRegisteredClaimNames.Sub, userInfo.UserId.ToString()),
                new Claim("fullName", userInfo.FullName.ToString()),
                new Claim("role",userInfo.RoleName),
                new Claim(JwtRegisteredClaimNames.Jti, Guid.NewGuid().ToString()),
            };
            var token = new JwtSecurityToken(
                issuer: _config["Jwt:Issuer"],
                audience: _config["Jwt:Audience"],
                claims: claims,
                expires: DateTime.Now.AddMinutes(180),
                signingCredentials: credentials
            );
            return new JwtSecurityTokenHandler().WriteToken(token);
        }                                                                    

 

        protected override void OnModelCreating(ModelBuilder modelBuilder)   
        {   
            modelBuilder.Seed();//use this for Sql server,Mysql,Sqlite and PostgreSql
           //modelBuilder.SeedOracle();//use this only for Oracle
        }

 

 

 


 

Once again, thank you so much for purchasing this script. As I said at the beginning, I'd be glad to help you if you have any questions relating to this script. I'll do my best to assist. If you have a more general question relating to the scripts on Codecanyon, you might consider visiting the forums and asking your question in the "Item Discussion" section.

Sangib Kumar Saha