Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

theandrew168/locost

Repository files navigation

LoCost

Web App for Analyzing Lines of Code + Cost

Local Development

Setup

This project depends on NodeJS v22 (or higher) and scc.

On macOS, these dependencies can be easily installed via Homebrew:

brew install node scc

Caching

This project optionally uses Redis for caching. To test the caching locally, you'll need an instance of Redis running.

Containers

I find Docker to be a nice tool for this but you can use whatever works best.

The following command starts the necessary containers:

docker compose up -d

These containers can be stopped via:

docker compose down

Building

When building for production, SvelteKit's adapter-node is used to compile the project into a NodeJS-ready directory.

npm run build

Then, to run the built / compiled version of the project locally, run node directly:

NODE_ENV=development ORIGIN=http://127.0.0.1:3000 node build

About

Web App for Analyzing Lines of Code + Cost

Resources

License

Stars

Watchers

Forks

Releases

No releases published