Setup Local Development
This guide will walk you through setting up a local development environment for the Devoria Cabinet HIMARPL website.
Prerequisites
Before installing the application, ensure you have:
Environment Setup Details
The project requires several environment variables to be set up in a .env file for proper functionality.
Turso Setup
Follow the Turso Quickstart Guide to get your DATABASE_URL.
Setup Steps
-
Fork and clone the repository:
HTTPS git clone https://github.com/himarplupi/devoria-himarpl.gitSSH git clone git@github.com:himarplupi/devoria-himarpl.gitGitHub CLI gh repo clone himarplupi/devoria-himarpl -
Navigate to project directory:
Terminal window cd devoria-himarpl -
Create environment variables file: Create a
.envfile in the root directory with the following variables:Terminal window DATABASE_URL=NEXT_PUBLIC_BASE_URL="http://localhost:3000"NEXT_PUBLIC_BASE_PATH=""NEXT_BASE_URL="http://localhost:3000" -
Set up remote upstream:
HTTPS git remote add upstream https://github.com/himarplupi/devoria-himarpl.gitSSH git remote add upstream git@github.com:himarplupi/devoria-himarpl.gitGitHub CLI gh repo sync himarplupi/devoria-himarpl -
Install dependencies and start development server:
Terminal window npm ci # Install dependenciesnpm run dev # Start development serverThe application should now be running at
http://localhost:3000. -
Create a new branch for your changes:
Terminal window git checkout -b my-feature-branch -
After you are satisfied with your changes, add and commit them to your branch, then push your branch to your fork.
Terminal window git add .git commit # Please follow the commit guidelines belowgit push -u origin my-feature-branch -
Create Pull Request.
Available Scripts
npm run dev- Starts development server with hot reloadnpm run build- Creates production buildnpm run start- Starts production servernpm run lint- Runs linting checks