Skip to content

Commit

Permalink
Merge pull request #17 from MinaFoundation/feature/consideration-phase
Browse files Browse the repository at this point in the history
Feature/consideration phase
  • Loading branch information
iluxonchik authored Nov 25, 2024
2 parents c475f5c + 71f1930 commit 18479cc
Show file tree
Hide file tree
Showing 49 changed files with 3,443 additions and 356 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
11 changes: 11 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": [
"next/core-web-vitals",
"next/typescript"
],
"rules": {
"@typescript-eslint/no-unused-vars": "off",
"react-hooks/exhaustive-deps": "warn",
"react/no-unescaped-entities": "warn"
}
}
77 changes: 77 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 56 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
description = "Next.js development environment with Podman";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
# Systems support
systems.url = "github:nix-systems/default";
};

outputs = { self, nixpkgs, systems, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
# Core dependencies
nodejs_20
nodePackages.typescript
nodePackages.tsx
podman
podman-compose
direnv
git
];

shellHook = ''
echo "🚀 Next.js development environment activated"
# Ensure podman socket is running
if ! podman system service --time=0 >/dev/null 2>&1; then
echo "Starting podman socket..."
podman system service --time=0 >/dev/null 2>&1 &
fi
# Environment variables for podman
export DOCKER_HOST="unix://$XDG_RUNTIME_DIR/podman/podman.sock"
export DOCKER_CONTEXT="default"
# Load .env file if it exists
if [ -f .env ]; then
set -a
source .env
set +a
fi
'';

# Add environment variables
env = {
NODE_ENV = "production";
};
};
});
}
138 changes: 131 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 18479cc

Please sign in to comment.