GithubHelp home page GithubHelp logo

postpap's Introduction

postpap

Story

This is a social network I started to write in 2015 in 8th/9th grade. It was the first larger project in PHP I wrote from scratch. After this project, which has also been hosted on postpap.de I moved along, as I reached the limitations of PHP and started developing with NodeJS (which was a bad idea), and quickly switched to CrystalLang and GoLang, where I wrote a similar project with way more efficient setups and real-time action.

Setup

# get the code
$ git clone https://github.com/oltdaniel/postpap
$ cd postpap
# start the infrastructure
$ docker-compose up -d
  1. Open phpmyadmin import and select the postpap.sql and click go.
  2. Now visit localhost/register.php and create an account.
  3. As I've disabled the mail verification (code exists) search the user in phpmyadmin and copy the activation_str. Now call http://localhost/profile/activate.php?c=ACTIVATION_CODE.
  4. Now login and have fun.

Issues & Troubleshooting

Chat notifications

I guess that I started to write group chats and stopped mid-way, which result in the chat notifications to not work anymore.

Registration throws permission errors

During registration, each user gets their own directory by creating a new one and duplicating the contents of users/sample. You can fix this by executing chmod -R 777 www/users.

Learning

As this was the first serious project I wrote in PHP, the lessons I learned where huge. Everything from configuration, encryption basics, and so on, up to realizing every Programming Language has its own limits. This is something I specially learned during implementing the chat. In the first versions I used text files on the server and worked with the filesystem timestamps. I quickly moved up to an mysql table, realizing that PHP is just not made for real-time action. Thus I moved along and wrote newer versions as mentioned in the story above.

License

just do, what you'd like to do

There is a version of some bootstrap, jquery, PHPmailer and so on in here. They have their own license and copyright stuff.

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.