40
README.md
|
@ -1,10 +1,23 @@
|
||||||
# AdventureLog: Embark, Explore, Remember. 🌍
|
# AdventureLog: Embark, Explore, Remember. 🌍
|
||||||
|
|
||||||
_**⚠️ AdventureLog is in early development and is not recommended for production use until version 1.0!**_
|
|
||||||
|
|
||||||
### _"Never forget an adventure with AdventureLog - Your ultimate travel companion!"_
|
### _"Never forget an adventure with AdventureLog - Your ultimate travel companion!"_
|
||||||
|
|
||||||
---
|
**Documentation can be found [here](https://docs.adventurelog.app).**
|
||||||
|
|
||||||
|
# Table of Contents
|
||||||
|
|
||||||
|
- [Installation](#installation)
|
||||||
|
- [Docker 🐋](#docker-)
|
||||||
|
- [Prerequisites](#prerequisites)
|
||||||
|
- [Getting Started](#getting-started)
|
||||||
|
- [Configuration](#configuration)
|
||||||
|
- [Frontend Container (web)](#frontend-container-web)
|
||||||
|
- [Backend Container (server)](#backend-container-server)
|
||||||
|
- [Proxy Container (nginx) Configuration](#proxy-container-nginx-configuration)
|
||||||
|
- [Running the Containers](#running-the-containers)
|
||||||
|
- [Screenshots 🖼️](#screenshots)
|
||||||
|
- [About AdventureLog](#about-adventurelog)
|
||||||
|
- [Attribution](#attribution)
|
||||||
|
|
||||||
# Installation
|
# Installation
|
||||||
|
|
||||||
|
@ -82,6 +95,27 @@ docker compose up -d
|
||||||
|
|
||||||
Enjoy AdventureLog! 🎉
|
Enjoy AdventureLog! 🎉
|
||||||
|
|
||||||
|
# Screenshots
|
||||||
|
|
||||||
|

|
||||||
|
Displaying the adventures you have visited and the ones you plan to embark on. You can also filter and sort the adventures.
|
||||||
|
|
||||||
|

|
||||||
|
Shows specific details about an adventure, including the name, date, location, description, and rating.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
View all of your adventures on a map, with the ability to filter by visit status and add new ones by click on the map.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
️
|
||||||
|
|
||||||
# About AdventureLog
|
# About AdventureLog
|
||||||
|
|
||||||
AdventureLog is a Svelte Kit and Django application that utilizes a PostgreSQL database. Users can log the adventures they have experienced, as well as plan future ones. Key features include:
|
AdventureLog is a Svelte Kit and Django application that utilizes a PostgreSQL database. Users can log the adventures they have experienced, as well as plan future ones. Key features include:
|
||||||
|
|
|
@ -8,9 +8,7 @@ services:
|
||||||
- PUBLIC_SERVER_URL=http://server:8000
|
- PUBLIC_SERVER_URL=http://server:8000
|
||||||
- ORIGIN=http://localhost:8080
|
- ORIGIN=http://localhost:8080
|
||||||
- BODY_SIZE_LIMIT=Infinity
|
- BODY_SIZE_LIMIT=Infinity
|
||||||
# Analytics can be configured here using Umami (https://umami.is)
|
|
||||||
- ENABLE_ANALYTICS=false
|
- ENABLE_ANALYTICS=false
|
||||||
#- UNAMI_KEY=''
|
|
||||||
ports:
|
ports:
|
||||||
- "8080:3000"
|
- "8080:3000"
|
||||||
depends_on:
|
depends_on:
|
||||||
|
@ -60,14 +58,3 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
postgres_data:
|
postgres_data:
|
||||||
adventurelog_media:
|
adventurelog_media:
|
||||||
#
|
|
||||||
# nginx:
|
|
||||||
# build:
|
|
||||||
# context: ./proxy/
|
|
||||||
# dockerfile: Dockerfile.nginx
|
|
||||||
# ports:
|
|
||||||
# - "81:80" # Using port 81 to avoid conflict with your existing setup
|
|
||||||
# volumes:
|
|
||||||
# - adventurelog_media:/app/media
|
|
||||||
# depends_on:
|
|
||||||
# - server
|
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
---
|
|
||||||
slug: first-blog-post
|
|
||||||
title: First Blog Post
|
|
||||||
authors:
|
|
||||||
name: Gao Wei
|
|
||||||
title: Docusaurus Core Team
|
|
||||||
url: https://github.com/wgao19
|
|
||||||
image_url: https://github.com/wgao19.png
|
|
||||||
tags: [hola, docusaurus]
|
|
||||||
---
|
|
||||||
|
|
||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
|
|
|
@ -1,44 +0,0 @@
|
||||||
---
|
|
||||||
slug: long-blog-post
|
|
||||||
title: Long Blog Post
|
|
||||||
authors: endi
|
|
||||||
tags: [hello, docusaurus]
|
|
||||||
---
|
|
||||||
|
|
||||||
This is the summary of a very long blog post,
|
|
||||||
|
|
||||||
Use a `<!--` `truncate` `-->` comment to limit blog post size in the list view.
|
|
||||||
|
|
||||||
<!--truncate-->
|
|
||||||
|
|
||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
|
|
||||||
|
|
||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
|
|
||||||
|
|
||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
|
|
||||||
|
|
||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
|
|
||||||
|
|
||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
|
|
||||||
|
|
||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
|
|
||||||
|
|
||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
|
|
||||||
|
|
||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
|
|
||||||
|
|
||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
|
|
||||||
|
|
||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
|
|
||||||
|
|
||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
|
|
||||||
|
|
||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
|
|
||||||
|
|
||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
|
|
||||||
|
|
||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
|
|
||||||
|
|
||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
|
|
||||||
|
|
||||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet
|
|
|
@ -1,20 +0,0 @@
|
||||||
---
|
|
||||||
slug: mdx-blog-post
|
|
||||||
title: MDX Blog Post
|
|
||||||
authors: [slorber]
|
|
||||||
tags: [docusaurus]
|
|
||||||
---
|
|
||||||
|
|
||||||
Blog posts support [Docusaurus Markdown features](https://docusaurus.io/docs/markdown-features), such as [MDX](https://mdxjs.com/).
|
|
||||||
|
|
||||||
:::tip
|
|
||||||
|
|
||||||
Use the power of React to create interactive blog posts.
|
|
||||||
|
|
||||||
```js
|
|
||||||
<button onClick={() => alert('button clicked!')}>Click me!</button>
|
|
||||||
```
|
|
||||||
|
|
||||||
<button onClick={() => alert('button clicked!')}>Click me!</button>
|
|
||||||
|
|
||||||
:::
|
|
Before Width: | Height: | Size: 94 KiB |
|
@ -1,25 +0,0 @@
|
||||||
---
|
|
||||||
slug: welcome
|
|
||||||
title: Welcome
|
|
||||||
authors: [slorber, yangshun]
|
|
||||||
tags: [facebook, hello, docusaurus]
|
|
||||||
---
|
|
||||||
|
|
||||||
[Docusaurus blogging features](https://docusaurus.io/docs/blog) are powered by the [blog plugin](https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-blog).
|
|
||||||
|
|
||||||
Simply add Markdown files (or folders) to the `blog` directory.
|
|
||||||
|
|
||||||
Regular blog authors can be added to `authors.yml`.
|
|
||||||
|
|
||||||
The blog post date can be extracted from filenames, such as:
|
|
||||||
|
|
||||||
- `2019-05-30-welcome.md`
|
|
||||||
- `2019-05-30-welcome/index.md`
|
|
||||||
|
|
||||||
A blog post folder can be convenient to co-locate blog post images:
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
The blog supports tags as well!
|
|
||||||
|
|
||||||
**And if you don't want a blog**: just delete this directory, and use `blog: false` in your Docusaurus config.
|
|
|
@ -1,21 +0,0 @@
|
||||||
---
|
|
||||||
sidebar_position: 3
|
|
||||||
---
|
|
||||||
|
|
||||||
# Congratulations! 🎉
|
|
||||||
|
|
||||||
You have just learned the **basics of Docusaurus** and made some changes to the **initial template**.
|
|
||||||
|
|
||||||
Docusaurus has **much more to offer**!
|
|
||||||
|
|
||||||
Anything **unclear** or **buggy** in this tutorial? [Please report it!](https://github.com/facebook/docusaurus/discussions/4610)
|
|
||||||
|
|
||||||
## What's next?
|
|
||||||
|
|
||||||
- Read the [official documentation](https://docusaurus.io/)
|
|
||||||
- Modify your site configuration with [`docusaurus.config.js`](https://docusaurus.io/docs/api/docusaurus-config)
|
|
||||||
- Add navbar and footer items with [`themeConfig`](https://docusaurus.io/docs/api/themes/configuration)
|
|
||||||
- Add a custom [Design and Layout](https://docusaurus.io/docs/styling-layout)
|
|
||||||
- Add a [search bar](https://docusaurus.io/docs/search)
|
|
||||||
- Find inspirations in the [Docusaurus showcase](https://docusaurus.io/showcase)
|
|
||||||
- Get involved in the [Docusaurus Community](https://docusaurus.io/community/support)
|
|
|
@ -1,5 +0,0 @@
|
||||||
---
|
|
||||||
sidebar_position: 2
|
|
||||||
---
|
|
||||||
|
|
||||||
# Local 🖥️
|
|
28
documentation/docs/Usage/updating.md
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
---
|
||||||
|
sidebar_position: 1
|
||||||
|
---
|
||||||
|
|
||||||
|
# Updating
|
||||||
|
|
||||||
|
Updating AdventureLog when using docker can be quite easy. Run the folowing commands to pull the latest version and restart the containers. Make sure you backup your instance before updating just in case!
|
||||||
|
|
||||||
|
Note: Make sure you are in the same directory as your `docker-compose.yml` file.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker compose pull
|
||||||
|
docker compose up -d
|
||||||
|
```
|
||||||
|
|
||||||
|
## Updating the Region Data
|
||||||
|
|
||||||
|
Region data in AdventureLog is stored in a seeding file. This file can change and there is an easy command to resync the region data without needing any database changes. This can be run by acessing the contianers terminal as follows.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker exec -it <container> bash
|
||||||
|
```
|
||||||
|
|
||||||
|
Once you are in the container run the following command to resync the region data.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
python manage.py worldtravel-seed --force
|
||||||
|
```
|
|
@ -6,4 +6,4 @@ sidebar_position: 1
|
||||||
|
|
||||||
This tutorial will guide you how to get AdventureLog up and running on your local machine quickly and easily.
|
This tutorial will guide you how to get AdventureLog up and running on your local machine quickly and easily.
|
||||||
|
|
||||||
Choose a next below to get started:
|
Click next below to get started:
|
||||||
|
|
|
@ -4,7 +4,7 @@ import type * as Preset from "@docusaurus/preset-classic";
|
||||||
|
|
||||||
const config: Config = {
|
const config: Config = {
|
||||||
title: "Adventure Log",
|
title: "Adventure Log",
|
||||||
tagline: "AdventureLog: Embark, Explore, Remember. 🌍",
|
tagline: "Embark, Explore, Remember. 🗺️",
|
||||||
favicon: "img/favicon.png",
|
favicon: "img/favicon.png",
|
||||||
|
|
||||||
// Set the production url of your site here
|
// Set the production url of your site here
|
||||||
|
@ -42,13 +42,13 @@ const config: Config = {
|
||||||
editUrl:
|
editUrl:
|
||||||
"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/",
|
"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/",
|
||||||
},
|
},
|
||||||
blog: {
|
// blog: {
|
||||||
showReadingTime: true,
|
// showReadingTime: true,
|
||||||
// Please change this to your repo.
|
// // Please change this to your repo.
|
||||||
// Remove this to remove the "edit this page" links.
|
// // Remove this to remove the "edit this page" links.
|
||||||
editUrl:
|
// editUrl:
|
||||||
"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/",
|
// "https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/",
|
||||||
},
|
// },
|
||||||
theme: {
|
theme: {
|
||||||
customCss: "./src/css/custom.css",
|
customCss: "./src/css/custom.css",
|
||||||
},
|
},
|
||||||
|
@ -77,7 +77,7 @@ const config: Config = {
|
||||||
position: "left",
|
position: "left",
|
||||||
label: "Documentation",
|
label: "Documentation",
|
||||||
},
|
},
|
||||||
{ to: "/blog", label: "Blog", position: "left" },
|
// { to: "/blog", label: "Blog", position: "left" },
|
||||||
{
|
{
|
||||||
href: "https://github.com/seanmorley15/adventurelog",
|
href: "https://github.com/seanmorley15/adventurelog",
|
||||||
label: "GitHub",
|
label: "GitHub",
|
||||||
|
@ -95,40 +95,32 @@ const config: Config = {
|
||||||
label: "Intro",
|
label: "Intro",
|
||||||
to: "/docs/intro",
|
to: "/docs/intro",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: "Installation",
|
||||||
|
to: "/docs/Installation/docker",
|
||||||
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Community",
|
title: "Community",
|
||||||
items: [
|
items: [
|
||||||
{
|
|
||||||
label: "Stack Overflow",
|
|
||||||
href: "https://stackoverflow.com/questions/tagged/docusaurus",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "Discord",
|
|
||||||
href: "https://discordapp.com/invite/docusaurus",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "Twitter",
|
|
||||||
href: "https://twitter.com/docusaurus",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "More",
|
|
||||||
items: [
|
|
||||||
{
|
|
||||||
label: "Blog",
|
|
||||||
to: "/blog",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
label: "GitHub",
|
label: "GitHub",
|
||||||
href: "https://github.com/facebook/docusaurus",
|
href: "https://github.com/seanmorley15/adventurelog",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
// {
|
||||||
|
// title: "More",
|
||||||
|
// items: [
|
||||||
|
// {
|
||||||
|
// label: "Blog",
|
||||||
|
// to: "/blog",
|
||||||
|
// },
|
||||||
|
// ],
|
||||||
|
// },
|
||||||
],
|
],
|
||||||
copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
|
copyright: `Copyright © ${new Date().getFullYear()} Sean Morley Built with Docusaurus.`,
|
||||||
},
|
},
|
||||||
prism: {
|
prism: {
|
||||||
theme: prismThemes.github,
|
theme: prismThemes.github,
|
||||||
|
|
BIN
screenshots/adventures.png
Normal file
After Width: | Height: | Size: 1.2 MiB |
BIN
screenshots/countries.png
Normal file
After Width: | Height: | Size: 191 KiB |
BIN
screenshots/details.png
Normal file
After Width: | Height: | Size: 908 KiB |
BIN
screenshots/edit.png
Normal file
After Width: | Height: | Size: 484 KiB |
BIN
screenshots/itinerary.png
Normal file
After Width: | Height: | Size: 656 KiB |
BIN
screenshots/map.png
Normal file
After Width: | Height: | Size: 299 KiB |
BIN
screenshots/regions.png
Normal file
After Width: | Height: | Size: 82 KiB |