Skip to content

Commit

Permalink
remove unnecessary files
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Kalveram committed Dec 6, 2018
1 parent a802ac3 commit cd9c203
Show file tree
Hide file tree
Showing 141 changed files with 12 additions and 15,078 deletions.
1 change: 0 additions & 1 deletion .dockerignore

This file was deleted.

14 changes: 0 additions & 14 deletions Dockerfile

This file was deleted.

20 changes: 1 addition & 19 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ dotenv.load({ path: ".env" });
/**
* Controllers (route handlers).
*/
const homeController = require("./controllers/home");
const apiController = require("./controllers/api");

/**
Expand Down Expand Up @@ -56,33 +55,16 @@ mongoose.connection.on("error", err => {
*/
app.set("host", process.env.OPENSHIFT_NODEJS_IP || "0.0.0.0");
app.set("port", process.env.PORT || process.env.OPENSHIFT_NODEJS_PORT || 8080);
app.set("views", path.join(__dirname, "views"));
app.set("view engine", "pug");
app.use(cors());
app.use(expressStatusMonitor());
app.use(compression());
app.use(
sass({
src: path.join(__dirname, "public"),
dest: path.join(__dirname, "public")
})
);
app.use(logger("dev"));
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));
app.use(expressValidator());

app.use(
express.static(path.join(__dirname, "public"), { maxAge: 31557600000 })
);

/**
* Primary app routes.
*/
app.get("/", homeController.index);

/**
* API examples routes.
* API routes.
*/
app.post("/user/:type", apiController.postUser);
app.put("/user/:type", apiController.updateUser);
Expand Down
13 changes: 0 additions & 13 deletions controllers/home.js

This file was deleted.

1 change: 0 additions & 1 deletion controllers/notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const notificationTitles = {
const expo = new Expo();

const sendNotifications = (tokens, { title, message }) => {
console.log(tokens, title, message);
let messages = [];
for (let token of tokens) {
if (!Expo.isExpoPushToken(token)) {
Expand Down
18 changes: 0 additions & 18 deletions docker-compose.yml

This file was deleted.

115 changes: 0 additions & 115 deletions public/css/lib/bootstrap-social.scss

This file was deleted.

73 changes: 0 additions & 73 deletions public/css/lib/bootstrap/_alerts.scss

This file was deleted.

68 changes: 0 additions & 68 deletions public/css/lib/bootstrap/_badges.scss

This file was deleted.

28 changes: 0 additions & 28 deletions public/css/lib/bootstrap/_breadcrumbs.scss

This file was deleted.

Loading

0 comments on commit cd9c203

Please sign in to comment.