Mahmoud Niypoo

Mar 21, 2019 16:48
no problem
Mar 21, 2019 16:48
have a nice day and thanks for your help
Mar 21, 2019 16:47
hhhh
Mar 21, 2019 16:47
but when call /test route it's crashing i guess
Mar 21, 2019 16:47
yes this is index.html
Mar 21, 2019 16:44
mmm, I think so , thanks Jeremy for your help i will try to search on internet maybe i found something I missing
Mar 21, 2019 16:42
yes
Mar 21, 2019 16:42
Now i install hosting only with out functions
Mar 21, 2019 16:41
yes
Mar 21, 2019 16:39
this is my code now
Mar 21, 2019 16:39
{
"hosting": {
"public": "public",
"rewrites": [
{
"source": "/test",
"function": "myApp1"
}
]
}
}
Mar 21, 2019 16:39
const functions = require("firebase-functions")
const express = require("express")

/* Express */
const app = express();

app.get("/test", (request, response) => {
return response.send("Hello from Express on Firebase!")
})

exports.myApp1 = functions.https.onRequest(app);
Mar 21, 2019 16:39
it still exists
Mar 21, 2019 16:38
no :(
Mar 21, 2019 16:37
wiat
Mar 21, 2019 16:37
what's it ?
Mar 21, 2019 16:37
!
Mar 21, 2019 16:37
if Should I install firebase function with hosting in firebase init
Mar 21, 2019 16:36
still exist
Mar 21, 2019 16:35
{
"hosting": {
"public": "public",
"rewrites": [
{
"source": "/test",
"function": "myApp1"
}
]
}
}
Mar 21, 2019 16:35
const functions = require("firebase-functions")
const express = require("express")

/* Express */
const app = express();

app.get("/hello", (request, response) => {
return response.send("Hello from Express on Firebase!")
})

exports.myApp1 = functions.https.onRequest(app);
Mar 21, 2019 16:35
thanks, i'm trying now
Mar 21, 2019 16:33
okay
Mar 21, 2019 16:33
sorry for wast your time
Mar 21, 2019 16:33
hello
Mar 21, 2019 16:32
i don't know also where i'm wrong this is my url angular6test-1c758.firebaseapp.com check it maybe i don't see something
Mar 21, 2019 16:32
in this moment I only have just one route/test that happened when call root / the index.html appear to men but when call `/test' the message that I added in top appear to me 404. That’s an error. The requested URL was not found on this server. That’s all we know
Mar 21, 2019 16:32
after I added the rewrites the message became different "404. That’s an error. The requested URL was not found on this server. That’s all we know."
Mar 21, 2019 16:32
and how about if I have several routes like const users= require('./routes/users'); const books= require('./routes/books'); app.use('/users', users); app.use('/books', books);
 

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
May 8, 2018 19:51
anybody have used "rimraf" to delete folder and did it but make a file Damaged
 
Apr 25, 2018 17:20
okay thank you very much
Apr 25, 2018 17:19
still the three files are missing
Apr 25, 2018 17:19
this is a list after 10 second from ncp copy process
Apr 25, 2018 17:19
[ '.DS_Store',
'appmanifest.json',
'Bots Can Feel Too iOS bannerFix 2 2 2',
'box2d.asm.js',
'c2runtime.js',
'data.js',
'data.json',
'game.html',
'icon.png',
'icons',
'images',
'media',
'newdictionary.json',
'offline.js',
'offlineClient.js',
'opus.asm.js',
'opus.asm.js.mem',
'opus.js',
'opus.wasm.js',
'opus.wasm.wasm',
'register-sw.js',
'screen.jpg',
'__MACOSX' ]
Apr 25, 2018 17:13
okay
Apr 25, 2018 17:12
if this is the problem ( i mean the space) there is a way to escape this issue with out rename
Apr 25, 2018 17:11
but i have another question !
Apr 25, 2018 17:11
wait me i will test it in Linux
Apr 25, 2018 17:10
yes just these start.js
style.css
sw.js
Apr 25, 2018 17:08
no still some files missing like
start.js
style.css
sw.js
Apr 25, 2018 17:07
sw.js
Apr 25, 2018 17:07
style.css
Apr 25, 2018 17:07
start.js
Apr 25, 2018 17:07
:D
Apr 25, 2018 17:06
it's bigger after remove space
Apr 25, 2018 17:06
this is a list of files have copied
Apr 25, 2018 17:06
[ '.DS_Store',
'appmanifest.json',
'box2d.asm.js',
'c2runtime.js',
'data.js',
'data.json',
'game.html',
'icon.png',
'icons',
'images',
'media',
'newdictionary.json',
'offline.js',
'offlineClient.js',
'opus.asm.js',
'opus.asm.js.mem',
'opus.js',
'opus.wasm.js',
'opus.wasm.wasm',
'register-sw.js',
'screen.jpg' ]
Apr 25, 2018 17:04
okey wait
Apr 25, 2018 17:03
can i here send photo