Skip to content

okesseko/personal-website-backend

Repository files navigation

Personal Website Backend

This project is a Backend Server for my personal website project, using MongoDB to store data

About Personal Website Project

It is a full-stack personal website system, consisting of project three elements Main Website, Backend Server and Content Management System

Your can click blew link to get more info

Content Management System: Personal Website CMS

Getting Started

Firstly, you will need to clone the repo locally. Once you have it ready navigate into the directory and run the following commands:

  1. Prepared your MongoDB, if you didn't ready yet. Follow this Download and Install Compass
  2. npm install or yarn (if you use yarn)
  3. Create a .env file in the root directory of this repo file

env path

  1. Set three variables DB_URL, JWT_SECRET and PASSWORD_SECRET into .env file
DB_URL = <mongodb url>
JWT_SECRET = < jwt private key>
PASSWORD_SECRET = <private key to encode password> 
  1. Remove comment out of the first time create account api

first create account

  1. npm run start or yarn start (if you use yarn)

  2. Call localhost:9000/user/first to create a admin account

  3. Stop project and remove or comment out the first time create account api

  4. Restart project and enjoy it 😀

After you start the project. It will automatically open on port 9000.
You can call it by the url http://localhost:9000

About

Backend for personal website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published