This is the backend repository for the PUFA Computing Backend project. It provides the server-side logic and API endpoints necessary to support the front-end application.
This backend repository is built using Golang and PostgreSQL. It serves as the server-side component of the [Project Name] project, providing API endpoints for data retrieval, manipulation, and authentication. The backend includes RBAC (Role-Based Access Control) authorization and utilizes JWT (JSON Web Tokens) for secure user authentication.
- Golang: The backend server is implemented in Golang, a statically typed programming language known for its simplicity and performance.
- PostgreSQL: The database management system used for storing and managing application data.
- Nginx: A web server used for reverse proxying and serving static files.
- RBAC Authorization: Role-Based Access Control is implemented to manage user access rights and permissions.
- JWT (JSON Web Tokens): JWT is used for secure authentication and authorization.
To run the backend server locally, follow these steps:
-
Clone this repository to your local machine:
git clone https://github.com/your-organization/backend.git
-
Navigate to the project directory:
cd backend
-
Install dependencies:
go mod tidy
-
Set up the PostgreSQL database and configure the database connection in the .env file.
-
Build the application:
go build -o main cmd/app/main.go
To start the backend server, run the following command:
go run cmd/app/main.go
The server will start listening on the specified port (default: 8080) and will be ready to handle incoming requests.
Contributions to this project are welcome! Feel free to open an issue or submit a pull request.
This project is licensed under the Creative Commons Attribution-NonCommercial (CC BY-NC) license.