Skip to content

The backend for my personal portfolio. Created with NodeJS and Express.

Notifications You must be signed in to change notification settings

JonZavialov/backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backend

Total Lines GitHub Repo Size Commit Activity

The backend for my website

View Website
View Documentation

💻 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.





badge

About

The backend for my personal portfolio. Created with NodeJS and Express.

Resources

Stars

Watchers

Forks