Skip to content

Commit

Permalink
0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pankrok committed Nov 29, 2022
1 parent 8bb1d5f commit f63829c
Show file tree
Hide file tree
Showing 49 changed files with 1,805 additions and 639 deletions.
71 changes: 71 additions & 0 deletions INSTALL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
Getting started
===============

Prerequisites
-------------

This repository recommend use VUE CLI and Composer.
**Protip:** It is highly recommended to use HTTPS.

Installation
------------

### Backend


* Install all dependecy by composer in directory _onebb-backend_
* Configure your web server to point on _onebb-backend/public/index.php_
* In _onebb-backend_ create own .env.local

``` env
###> symfony/framework-bundle ###
APP_ENV=dev
APP_SECRET=YOUROWNSECRETCODEFORSYMFONYAPP11
###< symfony/framework-bundle ###
###> symfony/mailer ###
# MAILER_DSN=smtp://localhost
###< symfony/mailer ###
###> doctrine/doctrine-bundle ###
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"
DATABASE_URL="mysql://username:password@host:3306/db_name?serverVersion=5.7"
# DATABASE_URL="postgresql://symfony:ChangeMe@127.0.0.1:5432/app?serverVersion=13&charset=utf8"
###< doctrine/doctrine-bundle ###
###> lexik/jwt-authentication-bundle ###
JWT_SECRET_KEY=%kernel.project_dir%/config/jwt/private.pem
JWT_PUBLIC_KEY=%kernel.project_dir%/config/jwt/public.pem
JWT_PASSPHRASE=YOUROWNJWTPASSPHRASE111111111111
###< lexik/jwt-authentication-bundle ###
###> nelmio/cors-bundle ###
CORS_ALLOW_ORIGIN='*'
###< nelmio/cors-bundle ###
###> symfony/lock ###
LOCK_DSN=semaphore
###< symfony/lock ###
###> onebb configuration ###
ACP_URL="acp"
BASE_URL="/"
###< onebb configuration ###
```

* migrate DB and Fixtures using Symfony Console:

``` bash
php bin/console doctrine:migrations:migrate
php bin/console doctrine:fixtures:load
```
> default user: _admin_
> default password: _admin_
### Frontend

* Open VUE CLI and add projects from directories _onebb-admin_ and _onebb-front_
* edit .env in directories _onebb-admin_ and _onebb-front_
> VUE_APP_BASE_SHEME
this variable should point to your domian where
* turn on vue serve
22 changes: 17 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# ONEBB DEV
> Single page application for discussion board.
> Single page discussion board.
official forum: [OneBB Forum](https://onebb.org)

## Table of contents
* [General info](#general-info)
Expand All @@ -20,15 +21,26 @@ OneBB are an open source discussion software that is simple to use and extended
* VUE 3

## Setup
> soon
* [Getting started](INSTALL.md)

## Features

Ready features:
* RWD designe,
* plugins system,
* plugin store,
* easy to use module system,
* OneBB Messenger,
* RestAPI

* email templates with editor,
* messenger,
* updater,

In progress:
* chat,
* skin store,
* ban reasons,
* translation,
* simple search engine
* two factor authentication,

## Status
Project is: _in progress_
Expand Down
1 change: 1 addition & 0 deletions onebb-admin/.env.production
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
VUE_APP_BASE_URL={{ base_url }}
VUE_APP_BASE_SHEME={{ app.request.schemeAndHttpHost }}
VUE_APP_ACP_URL={{ acp_url }}
VUE_APP_OBB_PANEL_URL=https://panel.onebb.org
2 changes: 1 addition & 1 deletion onebb-admin/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "onebb-admin",
"name": "onebb-admin-new",
"version": "0.1.0",
"private": true,
"scripts": {
Expand Down
13 changes: 7 additions & 6 deletions onebb-admin/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
<template>

<main>
<Transition name="fade">
<div v-if="$store.state.loading" class="col-12 relative">
<span class="box-loader"></span>
</div>
</Transition>
<div class="container row">
<Navigation />
<div class="f-grow">
<div class="main">
<div class="row">
<Header />
<Transition name="fade">
<div v-if="$store.state.loading" class="col-12 relative">
<span class="box-loader"></span>
</div>
</Transition>


<div class="view">
<Transition name="fade" mode="out-in">
Expand Down
Loading

0 comments on commit f63829c

Please sign in to comment.