The Wayback Machine - https://web.archive.org/web/20201109060732/https://github.com/jukefr/Lardons
Skip to content
master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
 
 
 
 
 
 
 
 
 
 

README.md

πŸ₯“ Lardons

[strapi, mongo, nuxt, docker-compose] "full stack framework" for the modern times

This is absolutely not safe in any manner for production. Use only for local dev.

Overview

This is a docker-compose based stack that runs :

Aimed at development only for now. Start fullstacking in under 5 minutes with this boilerplate πŸŽ‰

Usage

  1. (requirement) latest docker-compose installed github releases here
  2. configure the .env variables
  3. run yarn start or npm start
  4. (optional) if you just cloned the repo, everything (strapi + mongo + nuxt) will be generated the first time you start the app, this takes a little time, check the progress out using yarn logs

Commands

# YARN = NPM RUN

# all of these run OUTSIDE the CONTAINER
###################################################################
yarn start                          # docker-compose up -d
yarn logs                           # docker-compose logs -f
yarn shell                          # docker-compose exec node sh
yarn stop                           # docker-compose down

# all of these run INSIDE the CONTAINER
###################################################################
yarn client:add bootstrap@4.1.1     # npm install bootstrap
yarn client:restart                 # pm2 restart client
yarn client:logs                    # pm2 logs client
###################################################################
yarn server:strapi <command>        # strapi <command>          (broken see #2, exec manually inside the container)
yarn server:add graphql             # strapi install graphql    (broken see #2, exec manually inside the container)
yarn server:restart                 # pm2 restart server
yarn server:logs                    # pm2 logs server

Architecture

  1. dockerfile builds an image that has node, strapi, nuxt and pm2
  2. this image has an entrypoint that checks if strapi or nuxt boilerplates are present
    1. if not, it installs them and automatically generates the boilerplates
    2. if yes, starts pm2 processes on the node container for client and server
  3. this image is used on docker-compose with a mongo instance for the server

(alot of behind the scenes magic is going on to have the correct permissions for linux development, your user needs to be in the docker group and you're set)

Other Resources

inspired by this article, try following this guide to get a feel of what you can achieve using this stack in minutes.

About

πŸ₯“ = strapi + mongo + nuxt + docker-compose

Topics

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.