GithubHelp home page GithubHelp logo

bad-mushroom / eco Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 11.16 MB

A personal web ecosystem.

Dockerfile 0.65% Shell 0.36% PHP 67.31% JavaScript 0.55% SCSS 3.29% Blade 27.83%
blog content-management-system indieweb microformats laravel ownyourcontent

eco's Introduction

Eco - Personal Web Ecosystem

Inspired by @IndieWeb, Eco aims to be a personal hub for your web presence and publishing platform where you own your content.

Built with modern tooling:

  • Laravel 9
  • Bootstrap 5 & SaSS
  • Livewire

Features

  • Not a blog platform, a content platform
  • Developer friendly
  • Extendable themes
  • Supports hCard microformat
  • Atom syndication

Eco is still very early in development and may not recommended for production sites - take it for a spin locally first. Pull requests and issues are very much welcome!

Screenshots

Theme

Creating Stories

Development Installation

Requirements

Clone this repo locally

git clone https://github.com:bad-mushroom/eco.git ./my-website/eco

cd ./eco

The remaining installation steps will assume you're in the eco directory, or which ever directory you cloned the repo to.

Install Composer Dependencies

composer install

Environemnt Variables

Eco is built on Laravel which uses .env files for environment configuration. You'll first need to copy the example file.

cp .env.example .env

Paths

In your .env file there are a few paths that Eco will use to store content that you create - your data, file uploads, custom themes, etc. All of that data needs to be stored outside of Docker otherwise it will be lost each time Docker recreates its containers.

The values should be a relative path from the root Eco directory.

# -- Environment

CONTENT_PATH=../eco-content
DATABASE_PATH=../eco-db
THEMES_PATH=../eco-themes
PUBLIC_PATH=../eco-public

Let's say you have installed Eco in /srv/apps/my-website/eco. When Eco builds, your content files will be placed in /srv/apps/my-website/eco-content.

Docker

With the configuration values in place, we need to spin up Eco's Docker environemnt. This will spin up all the necessary containers to run Eco; MySQL, php-fpm, etc.

docker-compose up

Node Packages

There are a handfull of node packages to install and frontend assets to build that Eco requires for the admin pages.

cd resources/views/manage
npm i
npm run dev

Environment Setup

We'll need to build the database tables, seed them with some initial data, generate an app key, etc... but we can do this all with one command:

docker exec -it eco_fpm /var/www/artisan eco:setup

Configuration

Theme Assets

Anytime you add a theme or make changes to any frontend assets you'll need to publish those changes.

docker exec -it eco_fpm /var/www/artisan eco:publish-theme-assets

User Account

By default, there isn't a user account created during setup. To do this there is an artisan command you can run:

docker exec -it eco_fpm /var/www/artisan eco:make-account <email address> <name> --password=<password>

For example:

$ docker exec -it eco_fpm /var/www/artisan eco:make-account [email protected] Chris --password password123
User account created:
 - ID: 8eded58c-6cca-41f8-be73-c79584d767d9
 - Email: [email protected]
 - Name: Chris
 - Password: password123

Wrapping Up

You should now be able to access Eco in your web browser at http://localhost:8080 to see the main page or the admin page at http://localhost:8300/manage and log in with the email/password you created.

eco's People

Contributors

bad-mushroom avatar dependabot[bot] avatar

Watchers

 avatar  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.