import{r as i,p as r,q as d,w as o,z as t,t as n,R as e}from"./vendor.3d5b4206.js";const _={class:"markdown-body"},u={class:"tip hint"},h=t("div",{class:"hint-title"},"Automation",-1),p=e("We\u2019ve created a little CLI tool you can run that does this process automatically. For more info, check the doc on "),f=e("installing through the CLI"),g=e("."),m=t("h2",{id:"1.-setup-a-project-folder"},[e("1. Setup a Project Folder "),t("a",{class:"header-anchor",href:"#1.-setup-a-project-folder"},"#")],-1),v=t("p",null,[e("Create a new directory, and add a "),t("code",null,"package.json"),e(" by running the following command.")],-1),b=t("pre",null,[t("code",{class:"language-bash"},`npm init -y
`)],-1),y=e("We recommend aliasing the "),k=t("code",null,"start",-1),x=e(" script to Directus\u2019 start for easier deployments to services like "),C=e("AWS"),j=e(", "),w=e("Google Cloud Platform"),D=e(" or "),W=e("DigitalOcean App Platform"),F=e("."),I=t("pre",null,[t("code",{class:"language-json"},`{
	...
	"scripts": {
		"start": "directus start"
	}
	...
}
`)],-1),S=t("h2",{id:"2.-install-directus"},[e("2. Install Directus "),t("a",{class:"header-anchor",href:"#2.-install-directus"},"#")],-1),V=t("pre",null,[t("code",{class:"language-bash"},`npm install directus
`)],-1),A=t("h2",{id:"3.-setup-a-configuration-file"},[e("3. Setup a Configuration File "),t("a",{class:"header-anchor",href:"#3.-setup-a-configuration-file"},"#")],-1),B=t("p",null,[e("Finally, you\u2019ll need to setup your "),t("code",null,".env"),e(" file, or configure the environment variables through other means, such as Docker, etc.")],-1),N=t("p",null,[e("You can use a copy of "),t("a",{href:"https://github.com/directus/directus/blob/main/api/example.env",target:"_blank",rel:"noopener noreferrer"},[e("the "),t("code",null,"example.env"),e(" file")]),e(" as a starting point.")],-1),P=e("See "),E=e("Environment Variables"),L=e(" for all available variables."),O={setup(q,{expose:l}){const a={title:"Installing Manually",modularExtension:!1};return l({frontmatter:a}),(z,G)=>{const s=i("router-link"),c=i("DocsWrapper");return r(),d(c,{frontmatter:a},{default:o(()=>[t("div",_,[t("div",u,[h,t("p",null,[p,n(s,{to:"/docs/getting-started/installation/cli/"},{default:o(()=>[f]),_:1}),g])]),m,v,b,t("p",null,[y,k,x,n(s,{to:"/docs/getting-started/installation/aws/"},{default:o(()=>[C]),_:1}),j,n(s,{to:"/docs/getting-started/installation/gcp"},{default:o(()=>[w]),_:1}),D,n(s,{to:"/docs/getting-started/installation/digitalocean-app-platform/"},{default:o(()=>[W]),_:1}),F]),I,S,V,A,B,N,t("p",null,[P,n(s,{to:"/docs/configuration/config-options/#general"},{default:o(()=>[E]),_:1}),L])])]),_:1})}}};export{O as default};
