Giter Site home page Giter Site logo

chuckn408 / drogon-website Goto Github PK

View Code? Open in Web Editor NEW

This project forked from drogonframework/drogon-website

0.0 0.0 0.0 324 KB

Drogon community website.

Home Page: https://drogon.org

License: MIT License

Shell 17.76% C++ 33.33% CSS 37.14% CMake 11.78%

drogon-website's Introduction

Drogon Website

The source code for Drogon's official website.

Dependencies

How to deploy

Running in terminal

The backend is designed to be built by CMake like any C++ applications.

mkdir build
cd build
cmake .. # Add -DCMAKE_CXX_FLAGS="-std=c++20 -fcoroutines" if using GCC10
make -j
./drogon_website

It load it's configuration from drogon_config.json in the current directory. Which is frequently replaced when building the backend itself. Please edit drogon_config.json in the project root to have a permanent effect.

Arch Linux

If you are using Arch Linux, the PKGBUILD file contains everything you need to build the backend. (NOTE: This PKGBUILD is aimed for making local builds) Assuming your pwd is in the same folder as this README file is.

# We need to perform some stuff outside of the directory
cd .. 
mkdir trunk
# Compress the directory then put PKGBUILD and the archive in the same folder
tar --exclude='build' --exclude="content/uploads" --zstd -cf trunk/drogon-website.tar.zst drogon-website/
cp drogon-website/PKGBUILD trunk

# Build the package
cd trunk
makepkg

The generated drogon-website-0.0.1-x86_64.tar.zst should be located inside trunk. Just use pacman -U to install it and start it through systemd.

sudo pacman -U drogon-website*.pkg.tar.zst
sudo systemctl start drogon-website

By default, the service listens on 0.0.0.0 port 4231. To change the IP address that the service is listening on, edit /usr/share/drogon-website/drogon_config.json and change address.

/*inside the configuration file*/
"listeners": [
    {
        "address": "0.0.0.0", /* <==== change this*/
        "port": 4231,
        "https": false
    }
],

Remeber to restart the service after changing the configuration.

drogon-website's People

Contributors

marty1885 avatar an-tao avatar chuckn408 avatar mfwitten avatar pkonecki avatar urlordjames avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.