The backend for my website
View WebsiteView Documentation
View the frontend code at its repository.
View the docs for this api here.
git clone https://github.com/JonZavialov/backend.git
cd backend
git clone https://github.com/JonZavialov/backend-docs.git
npm i
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.
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
node index.js
This project is currently in progress by Jonathan.