-
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed git-lfs, onboarding docs, onboarding scripts
Finished up all copy for onboarding Updated onboarding docs/script/docker files Added WIP front end docker file Added engineering getting started callout Removed git-lfs check and instructions for existing installations Finished up all copy for onboarding Updated onboarding docs/script/docker files Added WIP front end docker file
- Loading branch information
Showing
11 changed files
with
10,183 additions
and
33 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,14 @@ | ||
# base image | ||
FROM node:12.2.0-alpine | ||
RUN npm install webpack webpack-cli -g | ||
|
||
RUN npm install webpack -g | ||
WORKDIR /tmp | ||
COPY package.json /tmp/ | ||
RUN npm config set registry http://registry.npmjs.org/ && npm install | ||
|
||
WORKDIR /app | ||
COPY . /app/ | ||
RUN cp -a /tmp/node_modules /app/ | ||
|
||
WORKDIR /usr/src/app | ||
COPY . /usr/src/app/ | ||
RUN cp -a /tmp/node_modules /usr/src/app/ | ||
RUN webpack | ||
|
||
ENV NODE_ENV=production | ||
ENV PORT=8080 | ||
ENV PORT=3000 | ||
RUN ls | ||
CMD [ "npm", "run-script", "dev" ] | ||
|
||
EXPOSE 8080 | ||
CMD [ "node", "server.js" ] | ||
EXPOSE 3000 |
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
File renamed without changes.
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
const express = require('express'); | ||
const path = require('path'); | ||
const port = process.env.PORT || 3000; | ||
const app = express(); | ||
|
||
// the __dirname is the current directory from where the script is running | ||
app.use(express.static(__dirname + '/dist')); | ||
|
||
// send the user to index html page inspite of the url | ||
app.get('*', (req, res) => { | ||
res.sendFile(path.resolve(__dirname, 'public/index.html')); | ||
}); | ||
|
||
console.log(`Listening on port ${port}`) | ||
app.listen(port); |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
*.csv | ||
Oops, something went wrong.