clone of repo on github
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
buttercat1791 f9d4823c54 Setup `Dockerfile.local` for testing prod config on localhost 1 year ago
.vscode Set up Flowbite and style home page 2 years ago
src Card, literalblock, listingblock, aside 1 year ago
static initial commit 2 years ago
test_data/AsciidocFiles Added Asciidoc testfiles 1 year ago
tests Moved tests into test folder 1 year ago
.dockerignore Add .dockerignore based on Bun guide 1 year ago
.gitignore Add dev Dockerfile and move env vars into Docker containers 1 year ago
.onedev-buildspec.yml add github automatic push on branch change 1 year ago
.prettierrc add navigation bar 2 years ago
Dockerfile moved copy of the main folder above package-lock.json as proposed by ChipTuner in PR 1 year ago
Dockerfile.local Setup `Dockerfile.local` for testing prod config on localhost 1 year ago
Dockerfile.prod Add dev Dockerfile and move env vars into Docker containers 1 year ago
LICENSE initial commit 2 years ago
README.md Fix dev Dockerfile for build and add instructions to README 1 year ago
bun.lock Add Bun lockfile 1 year ago
docker-compose.yaml initial commit 2 years ago
maintainers.yaml Removed obsolete relay from the list 1 year ago
package-lock.json Add Bun adapter and configure 1 year ago
package.json Add Bun adapter and configure 1 year ago
playwright.config.ts Moved tests into test folder 1 year ago
postcss.config.js Set up Flowbite and style home page 2 years ago
svelte.config.js Add Bun adapter and configure 1 year ago
tailwind.config.cjs Card, literalblock, listingblock, aside 1 year ago
tsconfig.json initial commit 2 years ago
vite.config.ts Moved tests into test folder 1 year ago

README.md

Roman scrolls

Alexandria

Alexandria is a reader and writer for curated publications. For a thorough introduction, please refer to our project documention, viewable on Alexandria.

Issues and Patches

If you would like to suggest a feature or report a bug, or submit a patch for review, please use the Nostr git interface on our homepage.

Developing

Make sure that you have Node.js installed.

Once you've cloned this repo, install dependencies with:

npm install

then start a development server:

npm run dev

or start the server and open the app in a new browser tab:

npm run dev -- --open

Building

We have configured Alexandria to use the static adapter. To deploy your app with a different adapter, you will need to install an adapter for your target environment.

To build a production version of your app, as a static site:

npm run build

You can preview the (non-static) production build with:

npm run preview

Docker

This docker container performs the build.

To build the container:

docker build . -t gc-alexandria

To run the container, in detached mode (-d):

docker run -d --rm --name=gc-alexandria -p 4174:80 gc-alexandria

The container is then viewable on your local machine.

If you want to see the container process (assuming it's the last process to start), enter:

docker ps -l

which should return something like:

CONTAINER ID   IMAGE           COMMAND                  CREATED         STATUS         PORTS                                     NAMES
1d83d736322f   gc-alexandria   "/docker-entrypoint.…"   2 minutes ago   Up 2 minutes   0.0.0.0:4174->80/tcp, [::]:4174->80/tcp   gc-alexandria

Docker + Bun

This application is configured to use the Bun runtime. A Docker container is provided to handle builds and deployments.

To build the app for development:

docker build -t next-alexandria -f Dockerfile.dev .

To run the development build:

docker run -d -p 3040:3040 next-alexandria

Testing

These tests are under development, but will run. They will later be added to the container.

To run the Vitest suite we've built, install the program locally and run the tests.

npm run test

For the Playwright end-to-end (e2e) tests:

npx playwright test