Skip to content

matt-halliday/magento-local

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Local Magento 2.4 API Development

This project gives Mac/Linux users a local Magento 2.4 instance with some dummy data to develop against.

After cloning this repository, ensuring Docker is running, you can simply run:

$ make

After doing so, and waiting for a not inconsiderable amount of time, you will see a message along the lines of:

Magento configured!
Frontend: http://magento2.local
GraphQL: http://magento2.local/graphql
Admin: http://magento2.local/admin_panel
u: admin@example.com
p: magento2password!

NB: If this is your first time, run make host_setup to configure local DNS

These URLs require a local DNS entry:

127.0.0.1 magento2.local

You can manually edit your /etc/hosts file to add that, or run the following to have a script do it for you:

$ make host_setup

GraphQL

Magento comes with GraphQL APIs out of the box. For more information on available queries, mutations and general concepts, visit their documentation.

Clean Up

This instance is immutable and to throw it all away and start again, run:

make rm

Credits

Uses a great container image by Narayan Varma

About

Local Magento 2.4 API development environment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published