Skip to content
/ Jobs Public

A simple web app for keeping track of job applications

Notifications You must be signed in to change notification settings

bit-bob/Jobs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jobs App

A simple web app for keeping track of job applications

Backend API

N.B. All commands for working with the backend API should be done within the backend directory in the root of the repository.

Setup

Prequisites

Setup Python Environment

pyenv install 3.9.18
pyenv local 3.9.18

Select Python Interpreter in VSCode

poetry shell

copy the output from /Users/... to .../virtualenvs/backend-21K18sx5-py3.12 to your VSCode python interpreter

cmd p
>Python: Select Interpreter

Install Dependencies

poetry install

Run Database Migrations

poe dbmate up

Development

Format the code

poe format

Lint the code

poe lint

Fix simple linting issues

poe lint_fix

Check the types in the code

poe type_check

Run all formatting, lint type checking fixes

poe pretty

Generating OpenAPI schemas

First time

cd ../backend; poe openapi
cd ../api-client; npm install
cd ../frontend; npm install ../api-client

Second time onwards

cd ../backend; poe openapi
cd ../frontend; npm install ../api-client

Make a database migration

poe dbmate new [MIGRATION_NAME]

Add a new Dependency

poetry add <dependency-name>

Use

Use a production version

Build the docker container locally
docker build .

Use a local test version

Run the API
poe run serve
Use the API

http://localhost:8000/docs

Frontend Web App

N.B. All commands for working with the frontend web app should be done within the frontend directory in the root of the repository.

This app was created using @capacitor/create-app, and comes with a very minimal shell for building an app.

Setup

Install Dependencies

npm install

Usage

Run the Web App

npm start
Use the API

http://localhost:3000