This project contains the backend and the frontend for aquarc!
git clone https://github.com/aquarc/webstack-v2.git
cd webstack-v2
cd frontend
npm install
npm run build
cd ..
You may have to run
npm install
if 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 postgresql
sudo apt update
sudo apt install postgresql postgresql-contrib
go build
You 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:
ls
On windows:
serve.exe
or
.\serve.exe
On everything else:
./serve
cd frontend
npm install
npm run build
cd ..
go build
./serve.exe
Your .env file should look like:
DB_USER=...
DB_PASSWORD=...
DB_HOST=...
DB_PORT=5432
DB_NAME=...
DB_SSLMODE=enable
PASSWORD=...