Home

Awesome

<h1 align="center">Backend</h1> <p align="center"> <img src="https://img.shields.io/tokei/lines/github/JonZavialov/backend?color=lightgray" alt="Total Lines" /> <img src="https://img.shields.io/github/repo-size/JonZavialov/backend?color=lightgray&logo=GitHub" alt="GitHub Repo Size" /> <img src="https://img.shields.io/github/commit-activity/m/JonZavialov/backend?color=lightgray&logo=GitHub" alt="Commit Activity" /> </p> <p align="center">The backend for my website</p> <a href="https://jonzav.me/">View Website</a> <br> <a href="https://api.jonzav.me/">View Documentation</a>

๐Ÿ’ป Frontend

View the frontend code at its repository.

๐Ÿ“– Documentation

View the docs for this api here.

๐Ÿงช Try It

Clone repo

git clone https://github.com/JonZavialov/backend.git
cd backend

Clone docs

git clone https://github.com/JonZavialov/backend-docs.git

Install dependencies

npm i

Generate ssl certificates

mkdir sslcert

Generate an ssl certificate with whatever tool you prefer using. For free certificates, I use Certbot with Let's Encrypt. Once generated, move cert.pem and privkey.pem into the sslcert directory.

Add environment variables

Create a file called .env

BASE_OAUTH_VALIDATION_URL=https://api.github.com/applications
CLIENT_ID=<your github api client id>
CLIENT_SECRET=<your github api client secret>
BASE_USER_URL=https://api.github.com/user
BASE_URL=https://github.com/login/oauth/access_token

Run server

node index.js

๐Ÿ‘จโ€๐Ÿ’ป Development

This project is currently in progress by Jonathan.

<br><br><br><br>

badge