Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DRAFT - WIP: Proof of concept of Astro instead of NextJS #112

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mathiash98
Copy link
Member

https://astro.build/ is a pretty neat framework for building web apps, similar to NextJS, main cool feature is support for using react/vue/svelte etc in same project.

See readme file in the folder for how to run it

  1. cd into the kvarteret-astro folder
  2. Add a .env.local file in this folder with the following content (use the tokens from the .env.local file in the old kvarteret project. Keep in mind DIRECTUS_STATIC_TOKEN has been renamed from CMS_TOKEN):
PUBLIC_DIRECTUS_URL=https://cms.kvarteret.no
DIRECTUS_STATIC_TOKEN=<token>
CRESCAT_TOKEN=<token>
STUDENTBERGEN_TOKEN=<token>
  1. Run npm install to install dependencies
  2. Run npm run dev to start the development server
  3. Open your browser and go to localhost:4321 to see the site

Current layout:
image

@mathiash98 mathiash98 self-assigned this Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants