Compare commits
15 Commits
7b31fc22c0
...
developmen
| Author | SHA1 | Date | |
|---|---|---|---|
|
a1b5e46d38
|
|||
| 5a0eab31d1 | |||
| 00c710e524 | |||
|
0641bb8d1a
|
|||
| 7bb7e8769d | |||
| 59bef990db | |||
|
8acd79cf46
|
|||
| 8959dafdba | |||
| c5942b1256 | |||
| 8b797d37a6 | |||
|
4eebdb596e
|
|||
|
30284156e8
|
|||
| 6cc0bb080d | |||
| 28b63d7944 | |||
| d139552f2b |
15
.devcontainer/devcontainer.json
Normal file
15
.devcontainer/devcontainer.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"name": "metarius.luke-else.co.uk",
|
||||
"image": "git.luke-else.co.uk/luke-else/nodejs-dev:latest",
|
||||
"remoteUser": "dev",
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"extensions": [
|
||||
"ms-azuretools.vscode-docker",
|
||||
"ms-vscode-remote.remote-containers",
|
||||
"svelte.svelte-vscode"
|
||||
]
|
||||
}
|
||||
},
|
||||
"postCreateCommand": "pnpm install"
|
||||
}
|
||||
42
README.md
42
README.md
@@ -1,38 +1,46 @@
|
||||
# sv
|
||||
## Welcome
|
||||
|
||||
Everything you need to build a Svelte project, powered by [`sv`](https://github.com/sveltejs/cli).
|
||||
This site is a clean wrapper around Aviation weather APIs to allow desk pilots to pre-brief flights effectively!
|
||||
|
||||
## Creating a project
|
||||
## Screenshots
|
||||
|
||||
If you're seeing this, you've probably already done this step. Congrats!
|
||||
<p align="center">
|
||||
<img src="assets/images/main.png" width="20%">
|
||||
<img src="assets/images/main-screen.png" width="40%">
|
||||
</p>
|
||||
|
||||
## Getting Started
|
||||
|
||||
Get starting but installing all of the dependencies of the project.
|
||||
|
||||
```bash
|
||||
# create a new project in the current directory
|
||||
npx sv create
|
||||
npm install
|
||||
|
||||
# create a new project in my-app
|
||||
npx sv create my-app
|
||||
```
|
||||
|
||||
## Developing
|
||||
|
||||
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
|
||||
Once you've created a project and installed dependencies with `pnpm install` (or `npm install` or `yarn`), start a development server:
|
||||
|
||||
```bash
|
||||
npm run dev
|
||||
pnpm run dev
|
||||
|
||||
```
|
||||
|
||||
```bash
|
||||
# or start the server and open the app in a new browser tab
|
||||
npm run dev -- --open
|
||||
pnpm run dev -- --open
|
||||
|
||||
```
|
||||
|
||||
## Building
|
||||
|
||||
To create a production version of your app:
|
||||
To create a production version of the app:
|
||||
|
||||
```bash
|
||||
npm run build
|
||||
pnpm run build
|
||||
|
||||
|
||||
```
|
||||
|
||||
You can preview the production build with `npm run preview`.
|
||||
You can preview the production build with `pnpm run preview`.
|
||||
|
||||
> To deploy your app, you may need to install an [adapter](https://svelte.dev/docs/kit/adapters) for your target environment.
|
||||
> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment. In this case, vite is used.
|
||||
|
||||
BIN
assets/images/main-screen.png
Normal file
BIN
assets/images/main-screen.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 47 KiB |
BIN
assets/images/main.png
Normal file
BIN
assets/images/main.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
12
dockerfile
12
dockerfile
@@ -1,4 +1,4 @@
|
||||
FROM node:lts-slim as build
|
||||
FROM git.luke-else.co.uk/luke-else/nodejs:latest AS build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
@@ -6,15 +6,15 @@ COPY package*.json ./
|
||||
RUN rm -rf node_modules
|
||||
RUN rm -rf build
|
||||
COPY . .
|
||||
RUN npm install
|
||||
RUN npm run build
|
||||
RUN pnpm install
|
||||
RUN pnpm run build
|
||||
|
||||
FROM node:lts-slim as run
|
||||
FROM git.luke-else.co.uk/luke-else/nodejs:latest AS run
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=build /app/package.json ./package.json
|
||||
COPY --from=build /app/build ./build
|
||||
RUN npm install --omit=dev
|
||||
RUN pnpm install --prod
|
||||
|
||||
EXPOSE 3000
|
||||
ENTRYPOINT [ "npm", "run", "start" ]
|
||||
ENTRYPOINT [ "pnpm", "run", "start" ]
|
||||
|
||||
Reference in New Issue
Block a user