No description
Find a file
Daniel Bulant d1b18e2e6e ignore
2023-10-04 11:12:16 +02:00
src initial commit 2023-10-04 09:55:38 +02:00
.gitignore ignore 2023-10-04 11:12:16 +02:00
Dockerfile initial commit 2023-10-04 09:55:38 +02:00
package.json initial commit 2023-10-04 09:55:38 +02:00
pnpm-lock.yaml initial commit 2023-10-04 09:55:38 +02:00
README.md initial commit 2023-10-04 09:55:38 +02:00
tsconfig.json initial commit 2023-10-04 09:55:38 +02:00

Facebug

Facebug is a simple web application that allows you to search for people by their first and last name.

Build instructions

# build an image
docker build -t haxagon/facebug .

# push an image to private registry
docker push haxagon/facebug

Development

# install dependencies
npm install

# build
npm run build

# start local mysql database server
docker run -d -p 3306:3306 --name mysql-docker-container -e MYSQL_ROOT_PASSWORD=facebug -e MYSQL_DATABASE=facebug -e MYSQL_USER=facebug -e MYSQL_PASSWORD=facebug mysql/mysql-server:latest

# start the application
./node_modules/nodemon/bin/nodemon.js lib/app.js

API

curl 'localhost:3000/search?firstName=Brad&lastName=Pitt'