Skip to content

jamesliu4c/backend_interview_python

Repository files navigation

Backend Interview Repository

To use this for an interview, click the green <> Code button, click the Codespaces tab, and create a new codespace.

You will need to install the Liveshare extension to share with anyone else. And once you have the live share active, you will need to change your terminal from read only to read/write. This is why we are using a codespace, so you don't have this on your computer.

This is a Python project with Flask, set up using UV.

In case the workspace is brand new, fresh, do this:

bash ./bootstrap

Once that is set up, you can run the app with hot reload:

flask --debug run

Use httpie to make requests from the terminal easy

http :5000/campaign/ start_date=="2023-01-01" end_date=="2023-01-31"

It will tell you an address with a port forward. So now you have a working API. The port forward by default only works in your (interviewer) local. Click on the PORTS tab (on the bottom toolbox, next to TERMINAL), right click on the forwarded port, and select public. Note, it becomes private every time the server restarts, so keep an eye on that tab and re-publicize the port when you need. Then it is up to you. Have a fun interview.

About

Backend interview boilerplate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published