GithubHelp home page GithubHelp logo

minhvoduc / game_store Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lpt0317/assignment_hcmg

1.0 0.0 0.0 98.13 MB

A simple game store, including front-end, back-end and mysql database.

JavaScript 83.75% PHP 2.82% CSS 7.70% Hack 0.26% HTML 2.64% Less 1.40% SCSS 1.42%

game_store's Introduction

Game Store

Full source code of web app using for assignment of Cybersecurity - A simple game store, including front-end, back-end and mysql database.

Prerequisite

  • Having installed virtualbox and 2 VMs (one of them are CentOS 7)
  • 2 VMs could ping each other

Hosting web using apache

  1. Install apache server
sudo yum install httpd -y
  1. Get web release (current: v1.0.0)
wget https://github.com/minhVoDuc/game_store/archive/refs/tags/v1.0.0.tar.gz

If wget hasn't been install yet

sudo yum update
sudo yum install wget -y
  1. Extract file and rename it to game_store
tar -xvf v1.0.0.tar.gz; mv game_store-1.0.0 game_store
  1. Copy source code to hosting directory (/var/www/)
sudo cp -r game_store /var/www
  1. Change ownership and permission of the directory
sudo chown -R apache:apache /var/www/game_store
sudo chmod -R 755 /var/www/game_store
  1. Create a virtual host file for your web site
sudo nano /etc/httpd/conf.d/game_store.conf

If nano hasn't been install yet

sudo yum install nano -y
  1. Add those following configs to file created above
<VirtualHost *:80>
   ServerName game_store.local
   DocumentRoot /var/www/game_store
   
   <Directory /var/www/game_store>
      Options Indexes FollowSymLinks MultiViews
      AllowOverride All
      Require all granted
   </Directory>
   
   ErrorLog /var/log/httpd/game_store_error.log
   CustomLog /var/log/httpd/game_store_access.log combined
</VirtualHost>
  1. Restart Apache
sudo systemctl restart httpd
  1. Test hosting directly on CentOS
curl localhost

If there isn't the homepage of game store, check php installed yet? If not:

sudo yum install php
  1. Open the other VM and test web hosted on CentOS by typing CentOS ip address that this VM could ping to

Note: using http instead of https

game_store's People

Contributors

minhvoduc avatar metacrektalhcmut avatar

Stargazers

 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.