Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.

Commit e187ed9

Browse files
committed
Migrate to typescript. Make serveable in production
1 parent 5bbeb79 commit e187ed9

10 files changed

Lines changed: 742 additions & 251 deletions

File tree

.gitignore

Lines changed: 229 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,229 @@
1+
2+
# Created by https://www.toptal.com/developers/gitignore/api/node,yarn,vim,visualstudiocode
3+
# Edit at https://www.toptal.com/developers/gitignore?templates=node,yarn,vim,visualstudiocode
4+
5+
### Node ###
6+
# Logs
7+
logs
8+
*.log
9+
npm-debug.log*
10+
yarn-debug.log*
11+
yarn-error.log*
12+
lerna-debug.log*
13+
.pnpm-debug.log*
14+
15+
# Diagnostic reports (https://nodejs.org/api/report.html)
16+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
17+
18+
# Runtime data
19+
pids
20+
*.pid
21+
*.seed
22+
*.pid.lock
23+
24+
# Directory for instrumented libs generated by jscoverage/JSCover
25+
lib-cov
26+
27+
# Coverage directory used by tools like istanbul
28+
coverage
29+
*.lcov
30+
31+
# nyc test coverage
32+
.nyc_output
33+
34+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
35+
.grunt
36+
37+
# Bower dependency directory (https://bower.io/)
38+
bower_components
39+
40+
# node-waf configuration
41+
.lock-wscript
42+
43+
# Compiled binary addons (https://nodejs.org/api/addons.html)
44+
build/Release
45+
46+
# Dependency directories
47+
node_modules/
48+
jspm_packages/
49+
50+
# Snowpack dependency directory (https://snowpack.dev/)
51+
web_modules/
52+
53+
# TypeScript cache
54+
*.tsbuildinfo
55+
56+
# Optional npm cache directory
57+
.npm
58+
59+
# Optional eslint cache
60+
.eslintcache
61+
62+
# Optional stylelint cache
63+
.stylelintcache
64+
65+
# Microbundle cache
66+
.rpt2_cache/
67+
.rts2_cache_cjs/
68+
.rts2_cache_es/
69+
.rts2_cache_umd/
70+
71+
# Optional REPL history
72+
.node_repl_history
73+
74+
# Output of 'npm pack'
75+
*.tgz
76+
77+
# Yarn Integrity file
78+
.yarn-integrity
79+
80+
# dotenv environment variable files
81+
.env
82+
.env.development.local
83+
.env.test.local
84+
.env.production.local
85+
.env.local
86+
87+
# parcel-bundler cache (https://parceljs.org/)
88+
.cache
89+
.parcel-cache
90+
91+
# Next.js build output
92+
.next
93+
out
94+
95+
# Nuxt.js build / generate output
96+
.nuxt
97+
dist
98+
99+
# Gatsby files
100+
.cache/
101+
# Comment in the public line in if your project uses Gatsby and not Next.js
102+
# https://nextjs.org/blog/next-9-1#public-directory-support
103+
# public
104+
105+
# vuepress build output
106+
.vuepress/dist
107+
108+
# vuepress v2.x temp and cache directory
109+
.temp
110+
111+
# Docusaurus cache and generated files
112+
.docusaurus
113+
114+
# Serverless directories
115+
.serverless/
116+
117+
# FuseBox cache
118+
.fusebox/
119+
120+
# DynamoDB Local files
121+
.dynamodb/
122+
123+
# TernJS port file
124+
.tern-port
125+
126+
# Stores VSCode versions used for testing VSCode extensions
127+
.vscode-test
128+
129+
# yarn v2
130+
.yarn/cache
131+
.yarn/unplugged
132+
.yarn/build-state.yml
133+
.yarn/install-state.gz
134+
.pnp.*
135+
136+
### Node Patch ###
137+
# Serverless Webpack directories
138+
.webpack/
139+
140+
# Optional stylelint cache
141+
142+
# SvelteKit build / generate output
143+
.svelte-kit
144+
145+
### Vim ###
146+
# Swap
147+
[._]*.s[a-v][a-z]
148+
!*.svg # comment out if you don't need vector files
149+
[._]*.sw[a-p]
150+
[._]s[a-rt-v][a-z]
151+
[._]ss[a-gi-z]
152+
[._]sw[a-p]
153+
154+
# Session
155+
Session.vim
156+
Sessionx.vim
157+
158+
# Temporary
159+
.netrwhist
160+
*~
161+
# Auto-generated tag files
162+
tags
163+
# Persistent undo
164+
[._]*.un~
165+
166+
### VisualStudioCode ###
167+
.vscode/*
168+
!.vscode/settings.json
169+
!.vscode/tasks.json
170+
!.vscode/launch.json
171+
!.vscode/extensions.json
172+
!.vscode/*.code-snippets
173+
174+
# Local History for Visual Studio Code
175+
.history/
176+
177+
# Built Visual Studio Code Extensions
178+
*.vsix
179+
180+
### VisualStudioCode Patch ###
181+
# Ignore all local history of files
182+
.history
183+
.ionide
184+
185+
# Support for Project snippet scope
186+
187+
### yarn ###
188+
# https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
189+
190+
.yarn/*
191+
!.yarn/releases
192+
!.yarn/patches
193+
!.yarn/plugins
194+
!.yarn/sdks
195+
!.yarn/versions
196+
197+
# if you are NOT using Zero-installs, then:
198+
# comment the following lines
199+
!.yarn/cache
200+
201+
# and uncomment the following lines
202+
# .pnp.*
203+
204+
# End of https://www.toptal.com/developers/gitignore/api/node,yarn,vim,visualstudiocode
205+
206+
# Logs
207+
logs
208+
*.log
209+
npm-debug.log*
210+
yarn-debug.log*
211+
yarn-error.log*
212+
pnpm-debug.log*
213+
lerna-debug.log*
214+
215+
node_modules
216+
dist
217+
dist-ssr
218+
*.local
219+
220+
# Editor directories and files
221+
.vscode/*
222+
!.vscode/extensions.json
223+
.idea
224+
.DS_Store
225+
*.suo
226+
*.ntvs*
227+
*.njsproj
228+
*.sln
229+
*.sw?

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
FROM node:alpine
2-
RUN npm install -g http-server
2+
RUN yarn global add serve
33
WORKDIR /orbit
4-
CMD ["http-server"]
4+
COPY . .
5+
RUN yarn install
6+
RUN yarn build
7+
CMD ["serve", "dist"]

docker-compose.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,4 @@ services:
1717
- "traefik.http.services.orbit.loadbalancer.server.port=80"
1818
- "traefik.docker.network=traefik_default"
1919
ports:
20-
- "8080:8080"
21-
volumes:
22-
- "./:/orbit"
20+
- "6090:3000"

0 commit comments

Comments
 (0)