Generic pizza database structure with minimal CRUD
- Go build environment
- Docker
- NPM
- Make
PIZZA_DB_URL
- Url in the following form:username:password@tcp(host:port)/pizzeria?parseTime=true
PIZZA_DB_PASSWORD
- Root password of the databasePIZZA_LISTEN_ADDRESS
- Address to listen to inhost:port
form
- Set env variables (use DIRENV for example)
npm run db
- Creates DB container and starts it on port3306
npm run generate
- Generates data into the database (requires pizza-generation to be compiled)npm start
- Creates a new container from the application and starts it, directed to connect to previously started db
npm run dev
- Start webpack developer servernpm run clean-db
- Basically drops the database (requirespizza-generation
to be compiled)
After building of the frontend and backend, the application have a UI which is located at
$URL/ui