Goxygen generates web projects with Go

Share
  • March 5, 2020

At JAXenter, we love browsing new open source projects and seeing what creative developers make. During our exploration, Goxygen, a tool that generates modern Web projects with Go, Angular, React, Vue, and MondoDB caught our eye. (The cute logo also helped.)

It recently released v0.2.0, which added Angular and Vue support.

Have a brief look at what this tool accomplishes, its requirements, what its future plans include, and how you can help contribute.

Golang

Goxygen logo by Egon Elbre. Gopher design by Renee French.

SEE ALSO: How Curve is getting ahead with Golang

What does it do?

From the project’s README:

Goxygen aims at saving your time while setting up a new project. It creates a skeleton of an application with all configuration done for you. You can start implementing your business logic straight away. Goxygen generates back end Go code, connects it with front end components, provides a Dockerfile for the application and creates docker-compose files for convenient run in development and production environments.

Goxygen does not force its users to use a specific set of tools. However, it does use mongo-go-driver on the back end side. React and Vue projects use axios, a promise-based HTTP client, while Angular projects use Angular specific libraries.

An open issue suggesting support for different databases systems brought up the fact that users should be able to choose something besides MongoDB. The project creator commented this is currently in progress and most of the functionality is “already in place”.

According to a Reddit comment from the project’s creator, soon users will be able to choose from MongoDB, PostgreSQL, and MySQL, so keep your eyes open for future releases.

Goxygen v.0.2.0

The latest release arrived on March 2, 2020. Version 0.2.0, adds support for Angular and Vue. It also comes packaged with various optimizations and bug fixes for smoother performance.

In v0.2.0, you can now use the --frontend flag for specifying which front end framework you would like to see:

go run github.com/shpota/goxygen init --frontend vue my-app

You can choose from angularreact, or vue. By default, Goxygen will create a React-based project in the my-app folder. Afterward, you can run the project with docker-compose and is accessible on http://localhost:8080.

View a sample structure of a generated React-based app here.

SEE ALSO: Go turns 10: What does the next decade have in store?

Test it out

Interested in taking it for a test run? Before you begin, Go version 1.11 or higher is required.

If you would like to help contribute to the project, Goxygen is looking for translators who can translate the README. Any reported issues, bug reports, pull requests, or feedback will also help this new Golang project out.

The post Goxygen generates web projects with Go appeared first on JAXenter.

Source : JAXenter