Skip to content

Cambis/namunera

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Namunēra 🍋

Fresh + Silverstripe example integration

Getting Started 🔧

Prerequisites ⚙️

Docker World 🌏

This is a general overview of the services inside of docker-compose.yml

  • frontend (runs the Fresh app frontend)
  • backend (runs the Silverstripe app backend)
  • graphql (turns Silverstripe graphql into a typeface for frontend)
  • mysql (database)

Running the Project 🏃

First off, build the project:

docker-compose build

Install dependencies

docker-compose run --rm backend sake dev/build
docker-compose run --rm backend composer populate
docker-compose run --rm graphql yarn codegen

Then run the webserver:

docker-compose up

Then visit http://127.0.0.1:8000 for the backend and http://127.0.0.1:3000 for the frontend.

Cleaning Up ♻️

When you are finished developing, you stop the project with Ctrl + C then:

docker-compose down

Useful Commands 🐳

If you are not familiar with docker you may find these commands useful

docker-compose up # Starts the webserver
docker-compose down # Halts the webserver

docker-compose run --rm <SERVICE> <COMMMAND> # Run a command in a new container
docker-compose run --rm backend composer install # Example - run composer install on the backend

docker-compose exec <SERVICE> <COMMAND> # Run a command in an existing container
docker-compose exec frontend /bin/sh # Log into the standard shell on the frontend

About

Fresh + Silverstripe integration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published