Skip to content

oguzhan-ulutas/odin-blog-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 

Repository files navigation

odin-blog-api

A blog site managed by a single admin. The Odin Project exercise to learn NodeJS, Express, and authentication.

  • Everybody can see blog posts.
  • People can signup and become a member.
  • Users can comment to blog posts.
  • Users can update their profile info.
  • Users can delete their profile and comments.
  • Admin can add, edit, delete blog posts.
  • Admin can delete users and comments.

Setup

Step 1: Environment File Setup

Create .env file in backend folder:

Also create .env file inside the frontend folder:

After creating those environment variables continue to dependency installation.

Step 2: Dependency Installation

Execute inside the both frontend and backend folders after cloning the repo:

npm install

Step 3: Launching the Development Server

Execute:

npm start

Or to start the server continuously with nodemon:

npm run devstart

Step 4: Launching the Client

Inside the frontend folder execute:

npm run dev

Usage

If you do not want to create new user,to login as user use:

To log in as admin, use: