git clone [email protected]:stonemtnrisk/quote-parser-fe.gitcd quote-parser-fegit switch developnpm run install- update the .env with attached
.env npm run dev
make sure you have node 22 <= and npm 10 <
before initializing the backend we need to setup localstack (local aws) and postgres
localstack is a cloud service in your local machine and we use it instead of using AWS directly.
docker run --rm -it -p 127.0.0.1:4566:4566 -p 127.0.0.1:4510-4559:4510-4559 -v /var/run/docker.sock:/var/run/docker.sock localstack/localstack- create s3 bucket called hit-local in us-east-1
awslocal s3api create-bucket --bucket hit-local --region us-east-2
docker run --name pg17 -e POSTGRES_PASSWORD=pass -e POSTGRES_USER=admin -e POSTGRES_DB=qp_local -p 5431:5432 -d postgres:17.5- restore database backup
psql -U admin -d qp_local -p 5431 -f backup.dump
git clone [email protected]:stonemtnrisk/quote-parser-fe.gitcd quote-parser-begit switch developpython -m venv .venvsource .venv/bin/activatepip install -r requirements.txt- copy certificate to your env to the top of your local certifit
.venv/lib/certifi/cacert.pemhere is the certificate - update .env.dev with this attach env
- create superuser
python manage.py createsuperusermake sure it matches the username and password in the .env of frontend (username: admin, password: 123456). - run server
DJANGO_ENV=development py manage.py runserver
mkdir node-proxy-servercd node-proxy-servernpm init -ynpm install express cors http-proxy-middlewaretouch server.js- replace it with content with server.js.
node server.js
git clone [email protected]:stonemtnrisk/quote-parser-ai.gitcd quote-parser-aigit switch develop- replace
docker-compose.dev.ymlfile content with this - replace
Dockerfilefile content with this docker compose -f ./docker-compose.dev.yml builddocker compose -f ./docker-compose.dev.yml up