Code Monkey home page Code Monkey logo

enset.club's Introduction

Website of ENSET Mohammedia Clubs

Setup

  • Install dependencies: composer install
  • Create a new .env file from .env.example : cp .env.example .env
  • Change the database credentials with you own in .env file
  • Run migrations with seeds php artisan migrate:fresh --seed
  • Launch the website php artisan serve

Setup sub-domains multi-tenancy

For Windows/Apache

  • Update your hosts file (C:\Windows\System32\drivers\etc\hosts) to translate the domains/sub-domains to localhost, example:
    127.0.0.1	n7geeks.ensetm.club
    ::1	n7geeks.ensetm.club
    
    127.0.0.1	admin.ensetm.club
    ::1	admin.ensetm.club
    
    127.0.0.1	ensetm.club
    ::1	ensetm.club
    
  • Add virtual hosts for each sub-domain, virtual hosts file is located in %APACHE_HOME%\conf\extra\httpd-vhosts.conf. %APACHE_HOME% is where your Apache server is located. For WAMP users, %APACHE_HOME% may refer to this location: C:\wamp64\bin\apache\apache<version>
    • Example (change c:/wamp64/www/n7geeks/enset.club to match the path of your local repository):
      <VirtualHost *:80>
            ServerName admin.ensetm.club
            DocumentRoot "c:/wamp64/www/n7geeks/enset.club/public"
            <Directory  "c:/wamp64/www/n7geeks/enset.club/public/">
                    Options +Indexes +Includes +FollowSymLinks +MultiViews
                    AllowOverride All
                    Require local
            </Directory>
      </VirtualHost>
      
      <VirtualHost *:80>
            ServerName n7geeks.ensetm.club
            DocumentRoot "c:/wamp64/www/n7geeks/enset.club/public"
            <Directory  "c:/wamp64/www/n7geeks/enset.club/public/">
                    Options +Indexes +Includes +FollowSymLinks +MultiViews
                    AllowOverride All
                    Require local
            </Directory>
      </VirtualHost>
      
      <VirtualHost *:80>
      ServerName ensetm.club
      DocumentRoot "c:/wamp64/www/n7geeks/enset.club/public"
      <Directory  "c:/wamp64/www/n7geeks/enset.club/public/">
          Options +Indexes +Includes +FollowSymLinks +MultiViews
          AllowOverride All
          Require local
      </Directory>
      </VirtualHost>
      

NB: If you don't see the configuration for your case, please consider adding it here when you find the solution.

To Contribute

  • Fork this repository
  • Create a new branch. ex: Feature/YourNewFeature or Fix/TheIssueName
  • Code ๐Ÿ’ป
  • Create a PR to the master branch
  • Welcome in ๐Ÿ‘

Don't forget to put a โญ It means a lot to us, Thanks!

enset.club's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ylizma

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.