/recipe-collector

Personal project to learn more Go.

Primary LanguageTypeScript

Recipe collector

A simple app to help me keep all the recipes I've cooked and loved in one place, while also learning Go! 👩‍🍳 👩‍💻

Dependencies

  • Go version go1.19 and above

Installing

Run the following command from the backend directory to get all the required Go dependencies:

go get .

Run the following command from the frontend directory to get all the required JS dependencies:

npm install

Developing

Set the environment variables for accessing the database:

export DBUSER=<username>
export DBPASS=<password>
export DBADDR=<address>

From the backend directory start the web server:

go run .

Visit http://localhost:8080/recipes to see the list of all recipes as a json response.

Note: If you want to run the server with live reloading, install https://github.com/cosmtrek/air and run air instead.

From the frontend directory start the local development server:

npm run dev

Next.js will start a hot-reloading development environment at http://localhost:3000.

Technology

Backend

  • GoLang
  • MySQL
  • Chi (router for building Go HTTP services)

Frontend

  • Typescript
  • React
  • Next.js (framework for building websites)
  • Styled-components