Skip to content

caturhidayat/expressjs-realApp

Repository files navigation

ExpressJS-Auth-Blog

Stack :

  1. ExpressJS as Backend
  2. Prisma as ORM Prisma - I love prisma 💜
  3. JWT
  4. Bulma-CSS

Desc

I made this project as a step to learn to make applications. this project might be simple for some, but quite difficult for a beginner like me. In this project you can sign in and create or post content. by default the content created is not published. but don't worry, you can publish it and also change the content on the draft page. Hopefully this project can be my first start as a developer and also inspire you.

Prerequisites

List any software or tools that need to be installed before setting up your project. Include versions if necessary.

  • Node.js (version 18)
  • npm (version 8)
  • PostgreSQL (version 13 to 15)

How to Install

  1. Clone this project

  2. run : cd [projct_dirctory] npm install

  3. Setup Prisma : npm install prisma --save-dev npx prisma init

  4. Inside the .env file, you should see a DATABASE_URL environment variable with a dummy connection string. Replace this connection string with the one for your PostgreSQL instance.

    // .env

    DATABASE_URL="postgres://[USER]:[PASSWORD]@localhost:5432/expressjs-realApp"

  5. Run migration : npx prisma migrate dev --name "init"

  6. Start App : npm run dev or npm run start

  7. Done, you can access this app at http://localhost:3000

About

This repository contains a full-stack web application built using the Express, JWT, Prisma, and Bulma-CSS. The app allows users to create and manage their own blogs, write articles, and interact with other users' content.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors