The DevxDao's grant and voting associates portal hosted at http://portal.devxdao.com
This is the frontend repo of the portal. Backend repo for this project is located here, https://github.com/ledgerleapllc/devxdao-backend
Relies on NextJS/Vercel, and NodeJS version 14+
You can find documentation on NextJS here https://github.com/vercel/next.js/
You can find documentation on NodeJS here https://github.com/nodejs/help
First we need a server to use. Apache/Nginx
sudo apt -y install apache2
sudo a2enmod rewrite
sudo a2enmod headers
sudo a2enmod ssl
sudo apt-get updateSetup the repo according to our VHOST path. Note, the actual VHOST path in this case should be set to /var/www/devxdao-frontend/out
cd /var/www/
git clone https://github.com/ledgerleapllc/devxdao-frontend
cd devxdao-frontendIf you do not have Node installed yet, we use v14.x. Script below
curl -sL https://deb.nodesource.com/setup_14.x | sudo bash -
sudo apt install nodejs -yInstall packages
npm installYou will need to copy over .env.example to .env.production and specify variables to fit the server on which you're deploying. You can also cp to .env.development for local dev testing.
cp .env.example .env.productionBuild the project
npm run build-exportThe above commands will build to out/ on site using the variables from your .env.production file.
Default user/admin logins are created in the portal during initial install. All the default logins that are created on install are given random hash passwords that can be found printed in your backend laravel log file that will look something like this:
[2021-11-30 18:13:51] production.INFO: Created <type> admin
[2021-11-30 18:13:51] production.INFO: Email: <email>
[2021-11-30 18:13:51] production.INFO: Password: <random_password>
