Zournal Server Node API is a TypeScript NodeJs application that provide APIs for working of Zournal-Client application.
POST /user/login
Field | Example data |
---|---|
email |
root@zournal.com |
password |
root |
POST /user
Field | Example data |
---|---|
name |
Root Zournal |
email |
root@zournal.com |
password |
root |
Run this project using node, follow these guidelines:
git clone https://github.com/abhishek-geek/zournal.git
cd zournal
cd server
npm install
To run this project, you will need to add the following environment variables to your .env file
PORT
- Any Empty Port for localhost
MONGODB_URI
- MongoDB connection string
YOUTUBE_TOKEN
- list of several YouTube API keys separated by ','
PORT=5000
MONGODB_URI=<mongo:connection-string>
SECRET=key_for_JSON_Web_Token
To run Development server
npm run dev
Or run using
npm start