nosocoin / noso-faucet

A faucet implementation for Noso Coin
The Unlicense
3 stars 1 forks source link

Have a clean webroot folder with no code #2

Closed gcarreno closed 2 years ago

gcarreno commented 2 years ago

Hey @pasichDev,

Would it be OK if you modified your folder structure to the following?

This way when we create the virtual host on apache2, we point it at the folder webroot. This leaves all the code OUTSIDE the webroot folder and apache cannot serve it, so no need for the defined(pasich) or die().

This will also begin to prepare you folder structure to use composer. We need to have a talk about Name Spaces on your classes and probably use a better HTTP Client to access the explorer API.

But the composer stuff can wait, first the folder structure, please :smiley:

Many, many thanks!!

Cheers, Gus

pasichDev commented 2 years ago

Hey @gcarreno I have noticed your question. I'm already halfway to a solution.