- Setup Bench.
- In the frappe-bench directory, run
bench start
and keep it running. - Open a new terminal session and cd into
frappe-bench
directory and run following commands:
bench get-app slides
bench new-site slides.localhost --install-app slides
bench browse slides.localhost --user Administrator
bench --site slides.localhost set-config ignore_csrf 1 # prevents CSRFToken errors while using the vite dev server
- Access the slides page at
slides.localhost:8000/slides
in your web browser.
For Frontend Development
- Open a new terminal session and run the following commands:
cd frappe-bench/apps/slides
yarn install
yarn dev --host
- Now, you can access the site on vite dev server at
http://slides.localhost:8080
Note: You'll find all the code related to slides's frontend inside frappe-bench/apps/slides/frontend