/expense-splitter-backend

This is the api for the frontend, which is at https://github.com/KIRA009/expense-splitter-frontend

Primary LanguageJavaScript

Expense Splitter Backend (graphql api)

GraphQL api to send data to the frontend of the webapp

Installation

These instructions are aimed for users of all OS, but if it lacks something or you are stuck in some step, refer this issue

  • Fork the repo, and then clone it

  • Go to the directory

  • Check out how to create a virtual environment for python here, and activate it

  • Install the requirements

    pip3 install requirements.txt

  • Have a mysql or pgsql database ready, with whatever name you want

  • Set environment variables

    • For linux users

      cp .bashrc.example .bashrc

      And put appropriate values in .bashrc file

      source .bashrc

    • For windows users

      copy .bashrc.example .bashrc

      And put appropriate values in .bashrc file

      Run shell inside the virtual environment

      python3 manage.py shell

      from dotenv import load_dotenv
      load_dotenv('.bashrc')
      
  • Apply migrations

    python3 manage.py migrate

  • Run the django server

    python3 manage.py runserver

Contributing

  • Please begin contributing by looking into unsolved issues and projects.
  • If you find something not listed in the issues or projects, please create a new issue, and tag the mentor
  • For contributing, please fork the repo, make a new branch with a name relevant to the feature/fix, and then make a pull request after the changes have been applied to your fork

License

MIT