Renamed directories
9
.env.TEMPLATE
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
RUST_LOG=debug,actix=warn,diesel_migrations=warn,reqwest=warn,hyper=warn
|
||||||
|
DATABASE_CONTAINER=weather-db
|
||||||
|
DATABASE_HOST=db
|
||||||
|
DATABASE_USER=
|
||||||
|
DATABASE_PASSWORD=
|
||||||
|
DATABASE_NAME=weather
|
||||||
|
DATABASE_PORT=5432
|
||||||
|
SERVICE_HOST=localhost
|
||||||
|
SERVICE_PORT=5000
|
||||||
@@ -21,13 +21,7 @@ down: ## Stop Docker service containers
|
|||||||
docker compose down
|
docker compose down
|
||||||
|
|
||||||
connect: ## Connect to the Weather DB
|
connect: ## Connect to the Weather DB
|
||||||
docker exec -it aviation_weather_db psql -U postgres
|
docker exec -it ${DATABASE_CONTAINER} psql -U postgres
|
||||||
|
|
||||||
lint: ## Run the linter
|
|
||||||
npm run lint
|
|
||||||
|
|
||||||
clean: ## Clean up the service
|
|
||||||
rm -rf target
|
|
||||||
|
|
||||||
clean-db: ## Remove database
|
clean-db: ## Remove database
|
||||||
docker exec -i ${DATABASE_CONTAINER} sh -c 'PGPASSWORD=${DATABASE_PASSWORD} psql -U ${DATABASE_USER} -d postgres -c "DROP DATABASE IF EXISTS \"${DATABASE_NAME}\";"'
|
docker exec -i ${DATABASE_CONTAINER} sh -c 'PGPASSWORD=${DATABASE_PASSWORD} psql -U ${DATABASE_USER} -d postgres -c "DROP DATABASE IF EXISTS \"${DATABASE_NAME}\";"'
|
||||||
20
README.md
@@ -1,24 +1,4 @@
|
|||||||
# Aviation Weather
|
# Aviation Weather
|
||||||
|
|
||||||
# Getting Started
|
|
||||||
The main installed packages are the following:
|
|
||||||
- [Next.js](https://nextjs.org/docs)
|
|
||||||
- [ESLint](https://eslint.org/docs/latest/rules/)
|
|
||||||
- [Typescript](https://www.typescriptlang.org/docs/)
|
|
||||||
|
|
||||||
ESLint rules can be configured in the `.eslintrc.json` file.
|
|
||||||
Prettier rules can be configured in the `.prettierrc.json` file.
|
|
||||||
TypeScript rules can be configured in the `.tsconfig.json` file.
|
|
||||||
|
|
||||||
Next.js (React Framework)
|
|
||||||
- [Next.js Project Structure](https://nextjs.org/docs/getting-started/project-structure)
|
|
||||||
- [Next.js App Routing](https://nextjs.org/docs/app/building-your-application/routing)
|
|
||||||
- [Next.js Pages Routing](https://nextjs.org/docs/pages/building-your-application/routing)
|
|
||||||
|
|
||||||
Redux
|
|
||||||
- [Getting Started](https://redux.js.org/introduction/getting-started)
|
|
||||||
- [Code Structure](https://redux.js.org/faq/code-structure)
|
|
||||||
- [React Redux](https://redux.js.org/faq/react-redux)
|
|
||||||
|
|
||||||
## Makefile
|
## Makefile
|
||||||
`make help` to list all commands
|
`make help` to list all commands
|
||||||
@@ -25,7 +25,7 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "${SERVICE_PORT}:${SERVICE_PORT}"
|
- "${SERVICE_PORT}:${SERVICE_PORT}"
|
||||||
build:
|
build:
|
||||||
context: ./
|
context: service
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
0
weather-ui/Cargo.lock → ui/Cargo.lock
generated
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 696 B After Width: | Height: | Size: 696 B |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 618 B After Width: | Height: | Size: 618 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |