Skip to content
/ api Public

Multithreaded API with Goroutined WebSocket for Yappify

License

Notifications You must be signed in to change notification settings

yappify/api

Folders and files

NameName
Last commit message
Last commit date
Jun 20, 2024
Jul 16, 2024
Jun 20, 2024
Jun 20, 2024
Jun 20, 2024
Jun 20, 2024
Jun 20, 2024
Jul 16, 2024
Jun 20, 2024
Jul 16, 2024
Jun 10, 2024
Jun 20, 2024
Jul 9, 2024
Jul 16, 2024
Jul 16, 2024
Jun 20, 2024

Repository files navigation

Yappify API

MIT License ci-badge Go

Documentation: github.com/yappify/api/tree/main/docs

This source code makes up the RESTful API that serves the backend server of Yappify. it is a monolith written in Go, with the chi router, PostgreSQL database, and sqlc ORM.

Contributing

  1. Quickly set up development environment by running the following
mkdir yappify-api && cd yappify-api
git clone https://github.com/yappify/api.git .
cp .env.default .env && rm .env.default
  1. Start up docker desktop and start a postgres service in the background
make db-up
  1. Now, run the server
make run

You can alternatively run the server in a docker container. To do this, use:

  1. make image to build a docker image of the server
  2. make image-up to start the server in a docker container
  3. make image-down to stop the container.

You can now start making modifications. For more information, please consult the documentation.