Skip to content

Projectree allows you to create a page showcasing all the projects you want to share with your audience. This repo holds the API that connects the web app to the database.

License

Notifications You must be signed in to change notification settings

Sophyia7/projectree-backend

Repository files navigation

Backend Codebase for Projectree

License: MIT

Projectree is an open-source tool that helps you create and showcase your projects lists without the hassle of building it yourself. Just add your project details, choose a theme, and generate!

Routes

  • /auth/register: User can register and sends user a verification token.
  • /auth/login: User can log in with the right information.
  • /projectree: User can create a projectree
  • ​/projectree​/{projectree_id}: User can view a projectree by ID
  • delete-projectree/{projectree_id}/: User can delete a projectree by ID
  • /update-projectree/{projectree_id}/: User can update a projectree by ID
  • /get-user-projectree: User can get all projectree for a user
  • /project: User can create a project
  • /delete-projectr/{projectr_id}/: User can delete a project by ID
  • /delete-project/{project_id}/: User can delete a project by ID
  • /publish-projectree/{projectree_id}: User can publish the projectree by sending the ID
  • /view-publish/{publish_name}: User can view the publish project by sending the name.

The full API documentation is available here: https://projectree-app.herokuapp.com/docs/

Prerequisites

  1. Clone the repository and run:

git clone https://github.com/Sophyia7/projectree-backend

  1. Install all dependencies by running the following command:

pip install -r requirements.txt

  1. To run the server locally, run the following command:

python manage.py runserver

  1. Add your changes to the codebase

  2. Add a secret key to your local .env file and use a local database connection to test your changes locally.

  3. Create a new branch with your github username as the name of branch. E.g:

git checkout -b Sophyia7

  1. Lastly, push your changes to the branch and create a pull request.

Happy coding!

Created for the PlanetScale x Hashnode Hackathon

About

Projectree allows you to create a page showcasing all the projects you want to share with your audience. This repo holds the API that connects the web app to the database.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published