You can setup your own instance of Flora by following the steps below:
Warning
Due to the nature of Vite, it is recommended to CONFIGURE the
.env
file first before building the Docker image!!! You should always re-build the docker image as well when changing aVITE_
prefixed configuration in.env
file since Vite replaces them in the code in build time.
Clone the repository:
git clone https://github.com/ShindouMihou/Flora && cd Flora
Configure the required configurations:
cp .env.example .env && nano .env
Warning
All of the configurations are required to be configured otherwise there will be issues, please take note especially of the ones with
_SECRET
or_SIGNATURE
since those especially need to be hidden to yourself. Don't expose them!!!
Install MongoDB with Docker (optional if you have one already):
docker volume create flora_db
docker run -d -i -t --name flora_db --restart=always -e MONGO_INITDB_ROOT_USERNAME=<SECRET DATABASE USERNAME> -e MONGO_INITDB_ROOT_PASSWORD=<SECRET DATABASE PASSWORD> -v flora_db:/data/db mongo
After installing MongoDB, you need to configure the MONGO_URI in .env
:
nano .env
Note
If you used the MongoDB Docker steps above then you can use the following:
mongodb://<SECRET DATABASE USERNAME>:<SECRET DATABASE PASSWORD>@172.17.0.1:27017/?authSource=admin
Note
Remember to use the Docker machine host address:
172.17.0.1
when writing your connection address.
You can then start building the docker image for Flora and run the application:
docker build -t flora .
docker run -d -i -t -p 3000:3000 --env-file .env --name flora flora:latest
Flora should now be running at https://localhost:3000
(to change the port, change the value of -p
: -p <machine port>:3000
).
You can access Flora's creator dashboard which is located on /creator/
. You'll be redirected to the login page (/creator/login
) if you are not logged in. After that, you can create new articles, delete, update and whatever you like. Although Flora won't host any images whatsoever which means you need to upload the images somewhere.
If you want to log-out of the creator account then you can head to /creator/logout
which should log you out of the creator account.
Flora supports a minimal amount of SEO which is configured on .env
file, those SEO properties will be reflected on all pages except for the creator pages and also the articles themselves (which have their own SEO based on the content).
Articles uses the following SEO properties:
title
: The article title itself that was set for the article.image
: The article image that was set for the article.content
: The first 165-characters content written.article:author
: The value configured in VITE_DISPLAY_NAME
in .env
file.Flora is far from reaching stable release and at the moment is on development versions with the following features and functionalities implemented or missing:
/
) and Post (/posts/:id
) pages./editor/:id
) and Creator Dashboard (/creator/
)If you like and is using Flora then feel free to show the project some love by adding a star to the repository or by enabling VITE_FLORA_BANNER
in your configuration which will show the made with FLORA
banner at the top of your page (will not be shown again if the user opts to hide it).