- ExpressJS as Backend
- Prisma as ORM Prisma - I love prisma 💜
- JWT
- Bulma-CSS
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.
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)
-
Clone this project
-
run :
cd [projct_dirctory]npm install -
Setup Prisma :
npm install prisma --save-devnpx prisma init -
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"
-
Run migration :
npx prisma migrate dev --name "init" -
Start App :
npm run devornpm run start -
Done, you can access this app at http://localhost:3000