https://github.com/techstartucalgary/tsu-website-back-end
https://github.com/techstartucalgary/tsu-website-back-end
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/techstartucalgary/tsu-website-back-end
- Owner: techstartucalgary
- Created: 2021-04-27T04:43:37.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-07T04:11:56.000Z (about 5 years ago)
- Last Synced: 2025-02-01T14:19:08.994Z (over 1 year ago)
- Language: Python
- Size: 79.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tsu-website-back-end
Back end for the community page of the Tech Start UCalgary website at https://tech-start-website.web.app, created referring to the Django Guide from Tech Start UCalgary found at https://docs.google.com/document/d/1Emq59prVwyzpnOW8CkTfz9FEWE00AH0epGFHji2k_lA/edit.
To run server locally, download repository into a folder with a python virtual environment set up and enter
```
python manage.py runserver
```
in the terminal.
If changes are made to models, enter in terminal
```
python manage.py makemigrations BackEnd
python manage.py migrate
```
To push changes to heroku app, enter in terminal
```
git push heroku HEAD:main
```
and to migrate in heroku, enter
```
heroku run python manage.py makemigrations BackEnd
heroku run manage.py migrate
```
Endpoints can be found at https://techstartbackend.herokuapp.com/.
login endpoint ```https://techstartbackend.herokuapp.com/login``` will return access token, first and last name.
Find swagger documentation at https://techstartbackend.herokuapp.com/swagger/.