mirror of
https://github.com/pierre42100/comunic
synced 2025-06-20 00:55:20 +00:00
First commit
This commit is contained in:
10
developer/user/pages/01.home/default.md
Normal file
10
developer/user/pages/01.home/default.md
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
title: Home
|
||||
---
|
||||
|
||||
# Comunic dev
|
||||
## Welcome to the **Comunic developer** website
|
||||
|
||||
Comunic is an open source social network built with privacy as goal. It stands for an alternative to the current official social networks such as Facebook or Twitter. This website offers ressources for contributors and/or other website developers who want to integrate Comunic to their website.
|
||||
|
||||
!! **Warning** This website is still under construction !
|
9
developer/user/pages/02.tools/default.md
Normal file
9
developer/user/pages/02.tools/default.md
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
title: Tools
|
||||
---
|
||||
|
||||
## Developer tools
|
||||
|
||||
Comunic offers you ressources to integrate Comunic to your website.
|
||||
|
||||
!! **Warning** This tutorial is still under construction !
|
79
developer/user/pages/03.getComunic/default.md
Normal file
79
developer/user/pages/03.getComunic/default.md
Normal file
@ -0,0 +1,79 @@
|
||||
---
|
||||
title: Get Comunic
|
||||
---
|
||||
|
||||
# Get Comunic
|
||||
## Get Comunic to test it
|
||||
|
||||
This page will explain you how to get Comunic working on your personnal server.
|
||||
|
||||
### Requirements
|
||||
|
||||
Comunic was written in PHP and MySQL. The current version of Comunic works PHP 7.0 and need to meet the following requirements :
|
||||
|
||||
* It is recommended to use a Unix operating system to install Comunic but if you want to contribute, it is **required** (Comunic webserver is running Debian)
|
||||
* **PHP7.0**, **Apache 2**, **Mysql server** must be installed on the server
|
||||
* The following PHP extensions must be installed and enabled : **php7.0-zip**, **php7.0-gd**, **php7.0-mysql**, **php7.0-pdo**
|
||||
* The packages **php7.0-mysql** and **libapache2-mod-php7.0** helps the components to be connected between them.
|
||||
* It is recommended to have at least **200 Mb** of free space to install Comunic
|
||||
|
||||
### Software installations
|
||||
|
||||
#### Windows
|
||||
|
||||
On Windows, you can install WAMP softwares to run Comunic, such as Wamp or uWamp. They presents by default all required extensions.
|
||||
|
||||
|
||||
#### macOS
|
||||
|
||||
You can [download and install MAMP](http://www.mamp.info/en/index.html) as web development environment to host Comunic.
|
||||
|
||||
|
||||
#### Debian and Ubuntu for developpment
|
||||
|
||||
Xampp is the recommended web development environment. [Download and install](http://www.apachefriends.org/) it from the official website.
|
||||
|
||||
|
||||
#### Debian and Ubuntu for deployment
|
||||
|
||||
!!! **Warning:** This method has been tested only with Ubuntu 16.04 LTS on a 64bit computer.
|
||||
|
||||
|
||||
##### System update
|
||||
|
||||
First, you will need to update your system. Refresh packages list using :
|
||||
|
||||
```sudo apt-get update```
|
||||
|
||||
Then upgrade it with the following command :
|
||||
|
||||
```sudo apt-get upgrade```
|
||||
|
||||
|
||||
##### Requirements installation and configuration
|
||||
|
||||
Install all required software using :
|
||||
|
||||
```sudo apt-get install apache2 mysql myqsl-server php7.0 php7.0-mysql php7.0-zip php7.0-zip php7.0-gd libapache2-mod-php7.0```
|
||||
|
||||
You will need to enable rewrite module of Apache : ```sudo a2enmod rewrite```
|
||||
|
||||
Go into the Apache configuration and modify the following lines :
|
||||
|
||||
<Directory /var/www/>
|
||||
Options Indexes FollowSymLinks
|
||||
AllowOverride None
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
into
|
||||
|
||||
<Directory /var/www/>
|
||||
Options Indexes FollowSymLinks
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
Then it is required to edit PHP configuration. Go ahead and edit the file
|
||||
|
||||
!! **Warning** This tutorial is still under construction !
|
39
developer/user/pages/04.default/default.md
Normal file
39
developer/user/pages/04.default/default.md
Normal file
@ -0,0 +1,39 @@
|
||||
---
|
||||
title: Default
|
||||
---
|
||||
|
||||
# Grav is Running!
|
||||
## You have installed **Grav** successfully
|
||||
|
||||
Congratulations! You have installed the **Base Grav Package** that provides a **simple page** and the default **antimatter** theme to get you started.
|
||||
|
||||
!!! If you want a more **full-featured** base install, you should check out [**Skeleton** packages available in the downloads](http://getgrav.org/downloads).
|
||||
|
||||
### Find out all about Grav
|
||||
|
||||
* Learn about **Grav** by checking out our dedicated [Learn Grav](http://learn.getgrav.org) site.
|
||||
* Download **plugins**, **themes**, as well as other Grav **skeleton** packages from the [Grav Downloads](http://getgrav.org/downloads) page.
|
||||
* Check out our [Grav Development Blog](http://getgrav.org/blog) to find out the latest goings on in the Grav-verse.
|
||||
|
||||
### Edit this Page
|
||||
|
||||
To edit this page, simply navigate to the folder you installed **Grav** into, and then browse to the `user/pages/01.home` folder and open the `default.md` file in your [editor of choice](http://learn.getgrav.org/basics/requirements). You will see the content of this page in [Markdown format](http://learn.getgrav.org/content/markdown).
|
||||
|
||||
### Create a New Page
|
||||
|
||||
Creating a new page is a simple affair in **Grav**. Simply follow these simple steps:
|
||||
|
||||
1. Navigate to your pages folder: `user/pages/` and create a new folder. In this example, we will use [explicit default ordering](http://learn.getgrav.org/content/content-pages) and call the folder `02.mypage`.
|
||||
2. Launch your text editor and paste in the following sample code:
|
||||
|
||||
---
|
||||
title: My New Page
|
||||
---
|
||||
# My New Page!
|
||||
|
||||
This is the body of **my new page** and I can easily use _Markdown_ syntax here.
|
||||
|
||||
3. Save this file in the `user/pages/02.mypage/` folder as `default.md`. This will tell **Grav** to render the page using the **default** template.
|
||||
4. That is it! Reload your browser to see your new page in the menu.
|
||||
|
||||
! NOTE: The page will automatically show up in the Menu after the "Home" menu item. If you wish to change the name that shows up in the Menu, simple add: `menu: My Page` between the dashes in the page content. This is called the YAML front matter, and it is where you configure page-specific options.
|
Reference in New Issue
Block a user