An easy to use REST API backend for the Ur-Codebin website
View The Website »
Explore the docs
·
Report Bug
·
Request Feature
Ur-Codebin is a website aimed at creating an easy to use code sharing platform, that allows users to quickly and efficiently share their code with others. This project is inspired by many other similar websites.
This repository is specifically the backend api for the website. It can be used to handle most requests relating to the website functionality. This API is secured by JWT token authentication except for all public endpoints. To get authenticated, a user must authenticate themselves using the /account/login endpoint. More information about authentication and other endpoints can be found in the Api Documentation.
- Spring Boot - Used as the main framework and foundation for the entire web application.
- Maven - A very important dependency and library management system.
- MySQL - This was the database used for the development and production environments.
- Docker - Docker was used to containerize the project to easily deploy on the server.
- AWS EC2 - The dockerized application is deployed on an EC2 instance.
- Nginx - Used as a reverse proxy to route "/api" calls to this REST API service.
- CloudFlare - Mainly used for free SSL certification and caching.
You can use this REST API to make calls to add/delete/get any information regarding the Ur-Codebin application, and the pastes that have been uploaded. Authentication is mandatory for any non-public endpoints. Authentication is done through a login endpoint and returns a Bearer JWT Token as an authentication header. More information regarding the endpoints can be found in the Api Documentation.
To learn more about the database schema and how the application stores related information. Head to the following Database Schema link and look through the relationships among all the tables.
The following are steps for users who wish to get a local copy of the web application running on their machine, and contribute to the project.
The following needs to be installed on your machine for the application to properly work.
- Go to your preferred directory
cd FakeFolder/NotRealDirectory/
- Clone the repo
git clone https://github.com/Mathew-Estafanous/Ur-Codebin-API.git
- Run app using maven
mvn spring-boot:run
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is protected under the MIT License! See LICENSE or https://en.wikipedia.org/wiki/MIT_License for more detailed information regarding permissions and protections regarding this open-source project.
If you have any questions or comments regarding this project. Feel free to reach out through my email.
Mathew Estafanous - [email protected]
Project Link - https://github.com/Mathew-Estafanous/Ur-Codebin