Git Product home page Git Product logo

serhiicho / englitopia Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 110.56 MB

This is my first website that I wrote just to practice PHP. This repo is just like a memory how I started my programming way. For the first time in my life I'm using a PHP ORM (Object-relational mapping) RedBean.

Dockerfile 0.12% PHP 94.18% JavaScript 0.78% CSS 4.80% Hack 0.12%
first-project first-site php php7 first-web-application

englitopia's Introduction

englitopia

About

This is my first website that I wrote just to practice PHP. This repo is just like a memory how I started my programming way. For the first time in my life I'm using a PHP ORM (Object-relational mapping) RedBean. I fall in love with it after using it. My code is pretty ugly, there are some mistakes and not secure submit forms. But everything work well, and I've learned a lot. You can register and befriend someone by sending a friend request. You can chat without refreshing the page. If some people are morans, you can ban this acoount or also report. There more to it. That's pretty amazing what I've done not knowing how javascript really works. When I started coding this app I didn't know that there are OOP programming.

The idea

The idea of this app was very simple. It should've been site for people who learn English. It has stories on different topics in English and different podcasts. For this moment it has 1 podcast from Larave Podcast site and one story just for example.

Additional information

After importing dump file there will be 2 users. One is admin and other is just a regular member. But you can register your user on /signup.php.

Username Password
admin 111111
foo 111111

Statuses

There are 4 statuses that user can use, in order to add status you need manually go to a database and add statuses that you want user to have in 'members' table. You can add them separating them with comma.

Example:

admin, writer

  • admin - can access Admin's room in settings /settings_menu.php He can see search statistics, create notifications to all members, can also see all user's information and their reports.
  • member - just a regular authenticated user
  • host - can upload podcasts and other things related to podcasts
  • writer - can upload stories and other things related to stories

Get started without Docker

  1. Put your database settings in src/config.php
  2. Create database with name "englitopia"
  3. Import dump.sql dump file from db directive
  4. php -S localhost:7000 and go to a browser on localhost:7000

Get started with Docker

git clone https://github.com/SerhiiCho/englitopia.git
cd englitopia && docker-compose up -d

Now you can go to localhost:7000. Note that if you see the white screen it means that MySQL init process is doing its job. It usually takes 20-30 second to see the site.

englitopia's People

Contributors

serhiicho avatar

Stargazers

 avatar

Watchers

 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.