Commit 7ba7bd06 authored by Omar Elkadi's avatar Omar Elkadi
Browse files

allow accssess from out side vue

parent f0dbef7b
......@@ -8,3 +8,7 @@ app.get('/', (req, res) => { res.send('Hello World') })
const PORT = process.env.PORT || 3000
app.listen(PORT, () => { console.log(`Server is running in http://localhost:${PORT}`) })
// # sourceMappingURL=server.js.map
app.listen(3000, '0.0.0.0', function () {
console.log('Listening to port: ' + 3000)
})
import { createApp } from 'vue'
import App from './App.vue'
import VueSweetalert2 from 'vue-sweetalert2'
import 'sweetalert2/dist/sweetalert2.min.css'
// add routing script to the main
import router from './router'
createApp(App).use(VueSweetalert2).use(router).mount('#app')
// const options = {
// confirmButtonColor: '#1a4273'
// }
createApp(App).use(router).mount('#app')
export const devServer = {
host: '0.0.0.0'
};
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment