imom39a / pdf-esignature-service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pdf-esignature-service

Environment setup

You need to have Go, Node.js, Docker, and Docker Compose (comes pre-installed with Docker on Mac and Windows) installed on your computer.

Verify the tools by running the following commands:

go version
npm --version
docker --version
docker-compose --version

Start in development mode

In the project directory run the command (you might need to prepend it with sudo depending on your setup):

docker-compose -f docker-compose-dev.yml up

This starts a local PostgreSQL database on localhost:5432. The database will be populated with test records from the init-db.sql file.

Navigate to the server folder and start the back end:

cd server
go run server.go

The back end will serve on http://localhost:8080.

Navigate to the webapp folder, install dependencies, and start the front end development server by running:

cd webapp
npm install
npm start

The application will be available on http://localhost:3000.

Start in production mode

Perform:

docker-compose up

This will build the application and start it together with its database. Access the application on http://localhost:8080.

About


Languages

Language:Go 40.4%Language:TypeScript 28.9%Language:HTML 17.0%Language:CSS 7.5%Language:JavaScript 3.7%Language:TSQL 1.8%Language:Dockerfile 0.7%