This project contains the backend and the frontend for aquarc!
git clone https://github.com/aquarc/webstack-v2.git
cd webstack-v2cd frontend
npm install
npm run build
cd ..You may have to run
npm installif it does not recognize react-scripts.
- Download PostgreSQL from the official website: https://www.postgresql.org/download/windows/
- Run the installer and follow the setup wizard
- Add PostgreSQL to your system PATH if not done automatically
Using HomeBrew:
brew install postgresqlsudo apt update
sudo apt install postgresql postgresql-contribgo buildYou will have to install postgreSQL properly for the project to build correctly
If "go build" has run properly, it should not have produced any output, rather it would have generated a "serve.exe" file which can be found with the command:
lsOn windows:
serve.exeor
.\serve.exeOn everything else:
./servecd frontend
npm install
npm run build
cd ..
go build
./serve.exeYour .env file should look like:
DB_USER=...
DB_PASSWORD=...
DB_HOST=...
DB_PORT=5432
DB_NAME=...
DB_SSLMODE=enable
PASSWORD=...you will have to make a second one inside the frontend directory
echo "REACT_APP_GTAG=G-..." >> ../frontend/.env