MKAbdElrahman / lenslocked.com

A photo sharing website written in Go following the usegolang.com tutorial.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lenslocked.com

A photo sharing website written in Go following the usegolang.com tutorial.

CI

Getting Started

Developmnet expected to be done on a Linux machine. If you are using Windows, you can use the Windows Subsystem for Linux to run the project.

The project uses Taskfiles to manage the development tasks. You can find the installation instructions here.

You can run the following tasks to get started:

  • task install-go: Installs Go
  • task test: Runs the tests
  • task run: Runs the application
  • task build: Builds the application

You can also run task -a to see all the available tasks.

All the tasks are defined in Taskfile.yml.

The CI pipeline is defined in .github/workflows/pipeline.yml. It runs the tests, builds the application and uploads the artifacts to GitHub releases. The pipeline uses task to run the tasks.

The project uses air for dynamic reloading. There is a configuration file .air.toml which also uses task to rebuild for building. There are also other configs which you can customize. To get started install air and type air in you shell.

Design Choices

Helpful Resources

Acknowledgements

I would also like to thank Jon Calhoun for his Go Web Development course which helped me a lot in understanding the concepts of web development in Go.

About

A photo sharing website written in Go following the usegolang.com tutorial.


Languages

Language:Go 100.0%