Giter Site home page Giter Site logo

Comments (30)

HenriqueAssreuy avatar HenriqueAssreuy commented on July 20, 2024 2

How do i implement this on a asp.net mvc project?

from adminator-admin-dashboard.

Markuz1995 avatar Markuz1995 commented on July 20, 2024 2

Hello could you guide me how to implement the template in angular 8 or an example to consult?

from adminator-admin-dashboard.

AlanJinqs avatar AlanJinqs commented on July 20, 2024 1

@kossa Thanks a lot :-)

from adminator-admin-dashboard.

danielpettifer avatar danielpettifer commented on July 20, 2024 1

Have finally got working.

Steps:
1 delete node_modules folder
2 $ npm install
3 $ npm run build
3.1 Fix all errors for dependencies that show up (from what I can see people are experiencing different issues here). Everything should show up green when all errors are fixed and you run $ npm build
4 $ webpack-dev-server --no-inline

from adminator-admin-dashboard.

achilles03anil avatar achilles03anil commented on July 20, 2024 1

How do i implement this on a asp.net mvc project?

from adminator-admin-dashboard.

cristinakity avatar cristinakity commented on July 20, 2024 1

How do i implement this on a asp.net mvc project?

from adminator-admin-dashboard.

 avatar commented on July 20, 2024 1

How to get it in Angular project?

from adminator-admin-dashboard.

jeffersonor900 avatar jeffersonor900 commented on July 20, 2024

image

from adminator-admin-dashboard.

kossa avatar kossa commented on July 20, 2024

In your URL I see that you try to load the file directly from the folder, instead you have to deploy, and then launch the server(the urls are absolute not relative)

run : npm run build and open a server under the build folder

image

from adminator-admin-dashboard.

AlanJinqs avatar AlanJinqs commented on July 20, 2024

@kossa Yep, I can run it through npm run build. But how can I deploy it to my server(With NGINX)? Which libraries are dependent?

from adminator-admin-dashboard.

joseblanco77 avatar joseblanco77 commented on July 20, 2024

I run npm run build command, but it freezes after next lines:

image

I can get a compiled version? I don't want to use Admin LTE (ugly) or sb-admin (too simple) anymore.

from adminator-admin-dashboard.

kossa avatar kossa commented on July 20, 2024

@AlanJinqs you can upload only the build folder to your server

Otherwise the best way is to build and link your server directly to build folder

@joseblanco77 may be problem with node version

from adminator-admin-dashboard.

joseblanco77 avatar joseblanco77 commented on July 20, 2024

@kossa thank you but it doesn't work. I just update my node from v6.11.3 to v9.2.1

Then I run the npm install and npm run build and still freezing at the same point.

from adminator-admin-dashboard.

kossa avatar kossa commented on July 20, 2024

@joseblanco77, got to top of command window you'll see the error

something like :
image

For me it's freezing too, but I opened new window I launched a server and it everything works fine
image

from adminator-admin-dashboard.

AlanJinqs avatar AlanJinqs commented on July 20, 2024

@kossa Thanks, but when I upload the build folder to my server, I can't load the CSS styles...It's same as load the src folder directly...

from adminator-admin-dashboard.

kossa avatar kossa commented on July 20, 2024

Point your server to directly to build folder, bcz the link to css are absolute ;)

from adminator-admin-dashboard.

rahmatputrawiranata avatar rahmatputrawiranata commented on July 20, 2024

i just try to build somethink adminator but when i try using npm run dev this think happen to me
image

from adminator-admin-dashboard.

rsagie avatar rsagie commented on July 20, 2024

Hi @rahmatputrawiranata I got the same error as you (happens on windows machines)
I resolved it with this:
open up a new cmd as administrator and run this command:
npm install --global --production windows-build-tools

Found the solution at chjj/pty.js#60

from adminator-admin-dashboard.

AndreiCN avatar AndreiCN commented on July 20, 2024

@jeffersonor900 does any of this solutions worked for you ?

from adminator-admin-dashboard.

AndreiCN avatar AndreiCN commented on July 20, 2024

After "npm run dev" , load it on the server created by webpack "http://localhost:3000/index.html" and will work for sure, not just "http://0.0.0.0:3000/" or "http://127.0.0.1:3000" they are the same thing.

from adminator-admin-dashboard.

w33haa2 avatar w33haa2 commented on July 20, 2024

how do i implement this on a laravel-based project??

from adminator-admin-dashboard.

kossa avatar kossa commented on July 20, 2024

Already done : https://github.com/kossa/laradminator

from adminator-admin-dashboard.

rsuregar avatar rsuregar commented on July 20, 2024

how to I add another plugin like select2.js? thank for advance

from adminator-admin-dashboard.

kossa avatar kossa commented on July 20, 2024

Here is an example for sweetalert 2

https://github.com/kossa/laradminator/blob/master/resources/assets/js/bootstrap.js#L37
https://github.com/kossa/laradminator/blob/master/resources/assets/js/sweetalert2/index.js

from adminator-admin-dashboard.

Mrgove10 avatar Mrgove10 commented on July 20, 2024

How do i implement this on a asp.net mvc project?

from adminator-admin-dashboard.

abhijeetc50 avatar abhijeetc50 commented on July 20, 2024

How to add a new page?

from adminator-admin-dashboard.

Kukunin avatar Kukunin commented on July 20, 2024

Instead of forking and modifying the project itself, it'd be cool to have an option to use it as dependency:

yarn add adminator

in css file

@import "adminator/src/assets/styles/index.scss"

in js flie

import "adminator/src/assets/scripts/index";

from adminator-admin-dashboard.

Kukunin avatar Kukunin commented on July 20, 2024

Just in case someone has googled this issue.

Successfully ran adminator on Phoenix framework (Elixir) with the following webpack 4:

My package.json dependencies:

{
  "dependencies": {
    "adminator": "https://github.com/puikinsh/Adminator-admin-dashboard.git",
    "phoenix": "file:../deps/phoenix",
    "phoenix_html": "file:../deps/phoenix_html"
  },
  "devDependencies": {
    "@babel/core": "^7.0.0",
    "@babel/preset-env": "^7.0.0",
    "babel-loader": "^8.0.0",
    "copy-webpack-plugin": "^4.5.0",
    "css-loader": "^2.1.1",
    "mini-css-extract-plugin": "^0.4.0",
    "node-sass": "^4.12.0",
    "optimize-css-assets-webpack-plugin": "^5.0.1",
    "sass-loader": "^7.1.0",
    "uglifyjs-webpack-plugin": "^1.2.4",
    "webpack": "4.4.0",
    "webpack-cli": "^3.3.2"
  }
}

webpack.config.js:

const path = require('path');
const glob = require('glob');
const webpack = require('webpack');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');

module.exports = (env, options) => ({
  optimization: {
    minimizer: [
      new UglifyJsPlugin({ cache: true, parallel: true, sourceMap: false }),
      new OptimizeCSSAssetsPlugin({})
    ]
  },
  entry: {
      './js/app.js': ['./js/app.js'].concat(glob.sync('./vendor/**/*.js'))
  },
  output: {
    filename: 'app.js',
    path: path.resolve(__dirname, '../priv/static/js')
  },
  module: {
    rules: [
      {
        test: /\.js$/,
        exclude: /node_modules/,
        use: {
          loader: 'babel-loader'
        }
      },
      {
        test: /\.css$/,
        use: [MiniCssExtractPlugin.loader, 'css-loader']
      },
      {
        test: /\.scss$/,
        use: [
            MiniCssExtractPlugin.loader,
            "css-loader",
            "sass-loader"
        ]
      },
      {
        test: /\.(eot|svg|ttf|woff|woff2)$/,
        exclude: /node_modules\/(?!(adminator)\/).*/,
        use: [
          {
            loader: 'file-loader',
            options: {
              name: '../css/[name].[ext]'
            }
          }
        ],
      }
    ]
  },
  plugins: [
    new webpack.ProvidePlugin({
      $: 'jquery',
      jQuery: 'jquery',
      'window.jQuery': 'jquery',
      Popper: ['popper.js', 'default'],
    }),
    new MiniCssExtractPlugin({ filename: '../css/app.css' }),
    new CopyWebpackPlugin([{ from: 'static/', to: '../' }])
  ]
});

and a single line in app.js:

import "adminator/src/assets/scripts/index";

from adminator-admin-dashboard.

byron-perez avatar byron-perez commented on July 20, 2024

Is it possible to add adminator to an existing laravel project?

from adminator-admin-dashboard.

joseblanco77 avatar joseblanco77 commented on July 20, 2024

from adminator-admin-dashboard.

Related Issues (20)

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.