Skip to content

Commit

Permalink
Fix bugs for safe hosting on heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
MuhammadFariMadyan committed May 2, 2019
1 parent 97f9104 commit f010170
Show file tree
Hide file tree
Showing 427 changed files with 90 additions and 125,162 deletions.
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
# adminlte-ejs-express

AdminLTE for EJS view engine with Express.js

## Run

- Clone this repo
- Install Dependencies, you can use `npm` or `yarn`
- Run project

## Progress

All Others feature WIP

## Done

- Page Login on http://localhost:3000/login
- Page Dahboard V1 on http://localhost:3000/dashboardv1
6 changes: 6 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ app.use(express.urlencoded({ extended: false }));
app.use(cookieParser());
app.use(express.static(path.join(__dirname, "public")));

// make adminlte package static
app.use(
"/script-adminlte",
express.static(path.join(__dirname, "/node_modules/admin-lte/"))
);

app.use("/", indexRouter);
app.use("/users", usersRouter);

Expand Down
2 changes: 1 addition & 1 deletion bin/www
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

var app = require('../app');
var debug = require('debug')('expressproject:server');
var debug = require('debug')('adminlte-ejs-express2:server');
var http = require('http');

/**
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "adminlte-ejs-express",
"version": "0.0.1",
"name": "adminlte-ejs-express2",
"version": "0.0.0",
"private": true,
"scripts": {
"start": "node ./bin/www",
"dev": "nodemon ./bin/www"
},
"dependencies": {
"admin-lte": "^2.4.10",
"cookie-parser": "~1.4.3",
"debug": "~2.6.9",
"ejs": "~2.5.7",
Expand Down
2 changes: 0 additions & 2 deletions public/adminlte/.npmignore

This file was deleted.

311 changes: 0 additions & 311 deletions public/adminlte/Gruntfile.js

This file was deleted.

Loading

0 comments on commit f010170

Please sign in to comment.