Coder Social home page Coder Social logo

blogging_plattform's Introduction

Fullstack-Course Project: Blogging-Plattform

This project was done as part of the fullstack course at the HSA where the goal was to build up a web app that uses express and Vue.

The goal of this project was to build a simple blog that has a administrative interface for the admin and the authors of the blog. The posts could be written in markdown thanks to unified.js.

Getting Started

  1. Create a .env file with the following variables
DB_USER="<username>"
DB_PASSWORD="<password>"
DB_DATABASE="<db-name>"

DATABASE_URL="postgresql://${DB_USER}:${DB_PASSWORD}@localhost:5432/${DB_DATABASE}?schema=public"
JWT_SECRET="<random hex string>"
ADMIN_REGISTER_CODE="<random uuid>"
TOKEN_EXPIRY_INTERVALL="<time span>"

If you want to build and run the docker containers swap localhost with db. The TOKEN_EXPIRY_INTERVALL is a time span that is described with vercel/ms.

  1. Copy the env file into the backend: cp .env apps/backend
  2. Install npm packages: npm i
  3. Start the database: docker-compose -f compose-database.yml up
  4. Perform the migrations: npm run migrate --workspace=@blog/backend
  5. Start the application: npm run start:watch

Monorepo structure

Apps

  • @blog/backend: The backend using express and prisma
  • @blog/frontend: Vue app running and bundles with vite
  • @blog/storybook: App for storybook that shows every story of the Monorepo
    • Currently only has the stories of @blog/frontend

Packages

  • @blog/config: Base configuration files like tsconfig.base.json

Acknowledgments

Other projects/blog posts that helped me in creating this project:

blogging_plattform's People

Contributors

rmvn27 avatar an-toni-ok avatar afklemm avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.