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
Main Website: Personal Website Dcard
Content Management System: Personal Website CMS
Firstly, you will need to clone the repo locally. Once you have it ready navigate into the directory and run the following commands:
- Prepared your MongoDB, if you didn't ready yet. Follow this Download and Install Compass
npm installoryarn(if you use yarn)- Create a
.envfile in the root directory of this repo file
- 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>
- Remove comment out of the first time create account api
-
npm run startoryarn start(if you use yarn) -
Call localhost:9000/user/first to create a admin account
-
Stop project and remove or comment out the first time create account api
-
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

