Skip to content

Commit

Permalink
project update
Browse files Browse the repository at this point in the history
  • Loading branch information
ExtranoDev committed Sep 19, 2023
1 parent c2bf1bf commit 77159e6
Show file tree
Hide file tree
Showing 4,618 changed files with 948 additions and 684,876 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
36 changes: 5 additions & 31 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,34 +1,8 @@
var createError = require('http-errors');
var express = require('express');
var cookieParser = require('cookie-parser');
var logger = require('morgan');
require('dotenv').config()
const express = require('express')
const app = express()

// middleware
app.use(express.json())
const URI = process.env.MYSQL_ADDON_URI


app.use(logger('dev'));
app.use(express.json());
app.use(express.urlencoded({ extended: false }));
app.use(cookieParser());

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

// catch 404 and forward to error handler
app.use(function (req, res, next) {
next(createError(404));
});

// error handler
app.use(function (err, req, res, next) {
// set locals, only providing error in development
res.locals.message = err.message;
res.locals.error = req.app.get('env') === 'development' ? err : {};

// render the error page
res.status(err.status || 500);
res.render('error');
});

module.exports = app;
app.listen()
8 changes: 8 additions & 0 deletions db/db.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const Seqeulize = require("seqeulize")
require('dotenv').config()
const URI = process.env.MYSQL_ADDON_URI


const seqeulize = new Seqeulize(URI, { dialect: 'mysql' })

module.exports = seqeulize
File renamed without changes.
File renamed without changes.
Empty file.
Empty file added models/organization.model.js
Empty file.
Empty file added models/user.model.js
Empty file.
Empty file added models/withdrawals.model.js
Empty file.
12 changes: 0 additions & 12 deletions node_modules/.bin/acorn

This file was deleted.

17 changes: 0 additions & 17 deletions node_modules/.bin/acorn.cmd

This file was deleted.

28 changes: 0 additions & 28 deletions node_modules/.bin/acorn.ps1

This file was deleted.

12 changes: 0 additions & 12 deletions node_modules/.bin/eslint

This file was deleted.

17 changes: 0 additions & 17 deletions node_modules/.bin/eslint.cmd

This file was deleted.

28 changes: 0 additions & 28 deletions node_modules/.bin/eslint.ps1

This file was deleted.

12 changes: 0 additions & 12 deletions node_modules/.bin/js-yaml

This file was deleted.

17 changes: 0 additions & 17 deletions node_modules/.bin/js-yaml.cmd

This file was deleted.

28 changes: 0 additions & 28 deletions node_modules/.bin/js-yaml.ps1

This file was deleted.

12 changes: 0 additions & 12 deletions node_modules/.bin/mime

This file was deleted.

17 changes: 0 additions & 17 deletions node_modules/.bin/mime.cmd

This file was deleted.

28 changes: 0 additions & 28 deletions node_modules/.bin/mime.ps1

This file was deleted.

12 changes: 0 additions & 12 deletions node_modules/.bin/node-which

This file was deleted.

17 changes: 0 additions & 17 deletions node_modules/.bin/node-which.cmd

This file was deleted.

28 changes: 0 additions & 28 deletions node_modules/.bin/node-which.ps1

This file was deleted.

12 changes: 0 additions & 12 deletions node_modules/.bin/nodemon

This file was deleted.

17 changes: 0 additions & 17 deletions node_modules/.bin/nodemon.cmd

This file was deleted.

Loading

0 comments on commit 77159e6

Please sign in to comment.