Skip to content

Instantly share code, notes, and snippets.

View jadenlemmon's full-sized avatar
🚀
Hacking away

Jaden Lemmon jadenlemmon

🚀
Hacking away
View GitHub Profile
@jadenlemmon
jadenlemmon / ProjectSeeder.php
Created February 19, 2021 18:44
ProjectSeeder
use App\Models\Project;
public function run()
{
Project::factory()
->count(5)
->create();
}
@jadenlemmon
jadenlemmon / ProjectFactory.php
Created February 19, 2021 18:43
ProjectFactory
class ProjectFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Project::class;
/**
@jadenlemmon
jadenlemmon / run_app.sh
Created February 19, 2021 18:11
Sample seed and run script
#!/bin/bash
cd /app
knex migrate:latest
knex seed:run
node server.js
@jadenlemmon
jadenlemmon / config.yml
Last active August 13, 2021 17:54
Shipfinder Voyage Config
services:
app:
context: ./
primary: true
exposePort: 3000
environment:
- name: APP_ENV
value: 'voyage'
- name: NODE_ENV
value: 'production'
@jadenlemmon
jadenlemmon / Dockerfile
Created February 16, 2021 15:46
Shipfinder Dockerfile
FROM node:12-alpine3.9
ENV DOCKERIZE_VERSION v0.6.1
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& tar -C /usr/local/bin -xzvf dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& rm dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz
WORKDIR /app
@jadenlemmon
jadenlemmon / bootstrap-start
Created January 12, 2015 19:54
Bootstrap Start
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="../../favicon.ico">