alexkrunch / anonib-3d Goto Github PK
View Code? Open in Web Editor NEW3D Anonymous Imageboard
3D Anonymous Imageboard
Ok so after a few hours of messing with this I finally got this to work.
Idk where else to put this but maybe the README file should be made clearer. Here is what I did:
/opt/lampp/etc/extra/httpd-vhosts.conf
/var/www/vhosts/AnonIB-3D
to wherever you have the project<VirtualHost *:80>
DocumentRoot "/var/www/vhosts/AnonIB-3D/src_angular/dist"
ServerName 3danon.local
ServerAlias www.3danon.local
<Directory "/var/www/vhosts/AnonIB-3D/src_angular/dist">
AllowOverride All
Require all granted
</Directory>
Alias /srv "/var/www/vhosts/AnonIB-3D/src_php"
<Directory "/var/www/vhosts/AnonIB-3D/src_php">
AllowOverride All
Require all granted
</Directory>
ErrorLog "logs/3danon.com-error_log"
CustomLog "logs/3danon.com-access_log" common
</VirtualHost>
AnonIB-3d/src_angular/src/environments/environment.ts
and change apiUrl to srv/php
. Now it should look like this
export const environment = {
production: false,
apiUrl: 'srv/php',
clientUrl: '/',
};
src_angular/angular.json
and edit this line: "outputPath": "dist/prota-angular",
to "outputPath": "dist"
.cd src_angular && npm i && ng build --prod
src_angular/dist
and create .htaccess as described on README
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^(srv|user)($|/) - [L]
RewriteRule ^(.*) index.html [NC,L]
That was wild to figure out considering I dont have knowledge of Angular. ALso this should allow you to alter the files freely, and without having to move the dist directory to root everytime you modify the Agular project
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.