Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added TOSTADA Italic.ttf
Binary file not shown.
Binary file added TOSTADA.ttf
Binary file not shown.
4 changes: 3 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ app.use(function(req, res, next) {
var viewTest = require('./routes/views/viewtest');
var appLocation = require('./routes/views/app-location');
var campView = require('./routes/views/campaign');
var campList = require('./routes/views/campaign_list');

// view engine setup
app.set('views', path.join(__dirname, 'views'));
Expand All @@ -51,8 +52,9 @@ app.use('/error/test', errorTest);
app.use('/view/test', viewTest);
app.use('/app-location', appLocation);
app.use('/campaign', campView);
// app.use(express.static('routes'));
app.use('/campaign-list', campList);

// app.use(express.static('routes'));
// error -this must be the last position in file
// catch 404 and forward to error handler
app.use(function(req, res, next) {
Expand Down
22 changes: 22 additions & 0 deletions campaign_register.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
var express = require('express');
var mysql = require('mysql');
var router = express.Router();

var connection = mysql.createConnection({
host: 'localhost',
port: 3306,
user: 'root',
password: 'root',
database: 'campaigndb'
});

router.get('/:campaignid', function (req, res, next) {
let campaignId = req.params.campaignid;

var sql = 'select * from campaign_info where id = ?';

if(app_id = null){

}

if
4 changes: 2 additions & 2 deletions config/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ var mysql = require('mysql');

var pool = mysql.createPool({
connectionLimit : 10,
host : 'localhost',
host : '211.253.28.194',
user : 'root',
password : '',
password : 'camp7531#$',
database : 'campaigndb',
waitForConnections : false
});
Expand Down
Binary file added images/arrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/sprite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/TOSTADA.ttf
Binary file not shown.
Loading