1
0

README updated

This commit is contained in:
Anthony Sgueglia
2020-03-25 18:30:27 -04:00
parent 0769cea37d
commit b3c5c1db52
3 changed files with 5 additions and 5 deletions

View File

@@ -20,7 +20,7 @@ You can run the node server by moving to the server directory and running `npm s
The Angular Development Server can be started by running `ng serve`
Endpoints are configured to proxy to the node server.
Endpoints are configured to proxy to the node server, which is running on http://localhost:3000. The Angular App will be running on http://localhost:4200 The proxy is setup to send `/api/[endpoint]` to the server. Keep this in mind while in development.
# Building

View File

@@ -55,12 +55,12 @@
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "rock-paper-scissors:build"
"browserTarget": "rock-paper-scissors:build",
"proxyConfig": "src/proxy.conf.json"
},
"configurations": {
"production": {
"browserTarget": "rock-paper-scissors:build:production",
"proxyConfig": "src/proxy.conf.json"
"browserTarget": "rock-paper-scissors:build:production"
}
}
},

View File

@@ -21,7 +21,7 @@ app.use(bodyParser.urlencoded({ extended: false }));
app.use(cookieParser());
app.use(express.static(path.join(__dirname, '../dist')));
app.use('/', routes);
app.use('/api', routes);
// catch 404 and forward to error handler
app.use(function(req, res, next) {