Skip to content
This repository has been archived by the owner on Mar 2, 2024. It is now read-only.

Latest commit

 

History

History

reddit-clone

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Reddit Clone

A toy Reddit clone built on M3O APIs

Usage

This reddit clone is built on M3O APIs. To run, first get a Micro token, and save it into the environment variable M3O_API_TOKEN. Once that's done, you can simply run the backend with go run main.go. It will listen on port 8090.

While the backend is currently a single go server, it should be trivial to adapt it to a golang FaaS provider (like Google Cloud Functions) and get backend hosting for free to run the whole app for free (backend on a Faas, frontend on Netlify, and the used Micro APIs are also free).

The frontend is an Angular application. Fork the repo and you can deploy for free on Netlify with the following settings:

Repo:               github.com/m3o/m3o
Base dir:           examples/reddit-clone/reddit
Build command       npm install && npm run build
Publish directory   reddit/dist/reddit

Change the repo to your fork.