Getting Started
Installation
Local install
Installing Nitropage locally gives you access to the underlying SolidStart project and a copy of all starter kit blueprints. This installation method allows you freely customize the whole project including the blueprints and to create your own ones.
Keep in mind that this method does not allow automatic updates! Learn how to manually update local installation in the Updates article.
Requirements
Initialize a new Nitropage project using the CLI:
pnpm create nitropage@latest <project-name> # or npm create nitropage@latest <project-name>When it asks you, choose to install dependencies and initialize the sqlite database.
Start up the development server:
cd <project-name> pnpm dev # or npm run dev
Docker
Docker is a great way to give Nitropage a try and to host basic websites with limited extensibility. This guide assumes that Docker is installed on your system and is ready to go.
Create a
compose.yamlfile with the following content:services: nitropage: restart: always image: nitropage/nitropage:sqlite env_file: ".env" volumes: - ./.data:/app/.data ports: - 3000:3000 healthcheck: test: ["CMD", "curl", "-f", "http://127.0.0.1:3000/admin"] interval: 2s timeout: 10s retries: 15Create an
.envfile with the following content:DATABASE_URL=file:../.data/dev.db NP_AUTH_SALT=random_characters NP_AUTH_PASSWORD=this_must_be_at_least_32_charactersChange NP_AUTH_SALT and NP_AUTH_PASSWORD to your liking or generate random values with the command:
openssl rand -hex 16Start the container:
docker-compose up -d
Wanna use a PostgreSQL database? Take a look at the following example: compose.yaml
Coolify
With Coolify you can easily self-host a wide range of services including Nitropage. It is completely open source and is constantly being improved!
Coolify itself can be used through two ways:
Railway
If you want to set up a website with Nitropage as easily as possible, Railway is the perfect solution. It is a cloud hosting provider focusing on simplicity and user experience.
We maintain two Railway templates, that both allow you to install Nitropage with few clicks: