Please sign in to access this page

shells

shells

4 devlogs
8h 16m
Created by obob

A website that estimates how many shells you will get from a ship!

Timeline

obob
obob
1h 32m 5 days ago

I created a program that searches the MongoDB database from my previous devlogs and prints out the results. It uses fuzzy search (the $search operator that can be seen in the code in the video) which basically also returns matches even if they aren't exactly the same as the query. It then sorts it by relevance and includes pagination using this line:

skipcount = (page - 1) * pagesize

which is then passed to the project_collection.find() method

obob
obob
4h 31m 8 days ago

I changed the script to use async which fetches data concurrently and is much faster! (30 minutes down to around 3 minutes!!!) It also now uses bulk_write with mongodb, which is much more efficient and reduces the amount of connections needed.

I also got a nest account, which is where I will be hosting the backend (my next step is to make the front end)

I added devlogs to the data that the script updates

Update attachment
obob
obob
1h 28m 14 days ago

I created a python script that uses the SOM projects api (https://summer.hackclub.com/api/v1/projects) to update a MongoDB collection with information about every project in Summer of Making. This data in the data base will then be used to calculate the estimated shell profit

Update attachment