This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'), | |
router = express.Router(); | |
router | |
.get('/', function (req, res) { | |
res.send('DONE !') | |
}) | |
.use('/uploadphoto', Upload) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express') | |
const bodyParser= require('body-parser') | |
const app = express(); | |
var cors = require('cors') | |
app.use(cors()) | |
app.use(bodyParser.json({limit: '50mb'})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require("express"); | |
const bodyParser = require("body-parser"); | |
const app = express(); | |
// PORT | |
const PORT = process.env.PORT || 4000; | |
app.get("/", (req, res) => { | |
res.json({ message: "API Working" }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = withOffline(withCSS({ | |
target: "serverless", | |
generateInDevMode:true, | |
workboxOpts: { | |
swDest: 'static/service-worker.js', | |
runtimeCaching: [ | |
{ | |
urlPattern: /[.](png|jpg|ico|css)/, | |
handler: 'CacheFirst', | |
options: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"src": "^/service-worker.js$", | |
"dest": "/_next/static/service-worker.js", | |
"headers": { | |
"cache-control": "public, max-age=43200, immutable", | |
"Service-Worker-Allowed": "/" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"src": "^/service-worker.js$", | |
"dest": "/_next/static/service-worker.js", | |
"headers": { | |
"cache-control": "public, max-age=43200, immutable", | |
"Service-Worker-Allowed": "/" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express') | |
const app = express() | |
const bcrypt = require('bcrypt') | |
var bodyParser = require('body-parser') | |
app.use(bodyParser.json()) | |
const users = [ ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express') | |
const app = express() | |
const bcrypt = require('bcrypt') | |
const mongoose = require('mongoose') | |
var bodyParser = require('body-parser') | |
app.use(bodyParser.json()) | |
mongoose.connect('mongodb://localhost/my_database', { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
:: make sure to change the settings from line 4-9 | |
set dbUser=root | |
set dbPassword="" | |
set backupDir="F:\supersami" | |
set mysqldump="C:\xampp\mysql\bin\mysqldump.exe" | |
set mysqlDataDir="C:\xampp\mysql\data" | |
set zip="C:\Program Files\7-Zip\7z.exe" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const cacheName = 'v1'; | |
const cacheAssets = [ | |
'index.html', | |
'about.html', | |
'/css/style.css', | |
'/js/main.js' | |
]; | |
// Call Install Event |
OlderNewer