Stocky is an inventory management app+API+database built with Python, FastAPI, and PostgreSQL. This project is designed to be run entirely inside a Docker-based development container, so all you need is Docker and Visual Studio Code with the Dev Containers extension.
-
Clone the Repository:
git clone https://github.com/svsticky/sturdy-memory.git` cd sturdy-memory
-
Open in VS Code:
Open the project folder in VS Code. If you have the Dev Containers extension installed, you will be prompted to reopen the project in a container.
Alternatively, open the Command Palette (Ctrl+Shift+P
orCmd+Shift+P
), then select Remote-Containers: Reopen in Container. -
Dev Container Initialization:
The provided
devcontainer.json
(inside the.devcontainer
folder) will automatically set up your environment, installing all necessary dependencies. No local Python or PostgreSQL installation is required.
-
Copy
sample.env
to.env
. Make sure all values are properly populated. -
Then, simply run:
docker compose up --build
The API will be accessible at http://localhost:8000. You can view the interactive API documentation at http://localhost:8000/docs or http://localhost:8000/redoc. The frontend will be accessible at http://localhost:3000
Contributions are welcome! To contribute:
- Fork the repository.
- Create a new branch:
git checkout -b feat/your-feature
. - Make your changes and confirm tests pass.
- Submit a pull request detailing your changes.
For major changes, please open an issue to discuss your ideas before proceeding.
This project is dual-licensed under either:
You may choose either license to govern your use of this software.
Copyright (c) 2025 S.V. Sticky
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Copyright 2025 S.V. Sticky
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Happy hacking!