Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit 48bd757f authored by Fadhil Pradipta Widyanto's avatar Fadhil Pradipta Widyanto
Browse files

Merge branch 'fadhil' into 'master'

Fadhil

See merge request diskuy!70
parents ffb3227c 25822069
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,7 @@
"@testing-library/react": "^11.2.2",
"@testing-library/user-event": "^12.6.0",
"axios": "^0.21.1",
"express": "^4.17.1",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-router-dom": "^5.2.0",
......@@ -15,7 +16,7 @@
"web-vitals": "^0.2.4"
},
"scripts": {
"start": "set PORT=3000 && react-scripts start",
"start": "node server/server.js",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
......
......@@ -28,7 +28,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<title>Diskuy</title>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
......
const path = require('path')
const express = require('express')
const port = process.env.PORT || 3000
const app = express()
const publicPath = path.join(__dirname, '..', 'build')
app.use(express.static(publicPath))
app.get('*', (req, res) => {
res.sendFile(path.join(publicPath, 'index.html'))
})
app.listen(port, () => {
console.log(`Server is up on port ${port}`)
})
export const API_URL = 'http://localhost:4000/api'
\ No newline at end of file
export const API_URL = 'https://diskuyapi.herokuapp.com/api'
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment