This project was generated with Angular CLI version 10.1.6. It is expected to be run along with with XAMPP on a linux (Ubuntu) computer. This project has mainly 3 kind of code files : Angular code files (for frontend), PHP scripts (for backend) and MySQL script (for backend).
After installing Angular CLI (version 10.1.6) and XAMPP on your linux computer, clone/save this project repository/directory inside the /opt/lampp/htdocs/
directory.
Make sure that you recursively change the permissions for the sfcode/
directory (project directory) and its subdirectories (It is recommended that they be set to 777).
Start the XAMPP servers by going into /opt/lampp
directory and using the command ./xampp start
as a superuser.
Now, if you are using XAMPP for this project for the first time, the follow these steps:
http://localhost/phpmyadmin/
and create a MySQL database with name ssl_database.backend/database.sql
script from the project repository, which create two tables : users and questions.Open a terminal in the project directory, /opt/lampp/htdocs/sfcode
. Now, follow these steps:
npm install
.ng build
to build the project.ng serve
to start angular server at http://localhost:4200/
. If you wish to make the website to be available to your local network, use ng serve --host local_ip --port port_no
./xampp start
command in the /opt/lampp/
directory.Now, you can open the website on your browser and the default Registration/Login page will open.