Directus.io is the self hosted headless CMS (they call it "open data platform") that is used to write and manage content on the website. It is important that you have a correctly configured running instance, otherwise the code will not work as expected.
For more instructions see: Directus Setup & data structure
Alternatively you can use the production Directus instance as in the default config.
Requirements: Node.js 14 or higher, NPM and Git has to be installed on your computer.
- Clone the GitHub repo / your fork.
- Run
npm install
in the project root. - Run
tsc
in the project root to compile the typescript files. - Create the project configuration (see configuration).
- Run
npm start
and you are finished with the setup.
The project itself uses environment variables and .env files for configuration.
- Create a file in the root directory named
.env
- Put the following in the file:
# The port for the express server
PORT = 7390
PUBLIC_URL = https://feminineboy.net
# Directus api configuration
DIRECTUS_ADDR = https://content.feminineboy.net/
# Optional directus token if you want to fetch content as an authenticated user
# DIRECTUS_TOKEN = *****
# Ackee analytics configuration
ACKEE_TRACKER = false
ACKEE_SERVER = false
ACKEE_DOMAIN_ID = false
ACKEE_DETAILED = false
Ackee is the privacy friendly analytics tool that is used to get usage stats for the website.
In most cases it is not necessary to install Ackee for local development, except if you want to change something related to that.
Visit Ackee's GitHub repo for more instructions: https://github.com/electerious/Ackee