tavvfiq / cafe-backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Backend For KeCafe Skuy!

This is the dependency of KeCafe Skuy Mobile App. Built with NodeJs using the ExpressJs Framework. Express.js is a web application framework for Node.js.

More about expressJS

Built With

Express.js Node.js

Requirements

  1. Node Js
  2. Node_modules
  3. Postman
  4. Web Server (ex. localhost with XAMPP or LAMPP)

How to run the app ?

  1. Open app's directory in CMD or Terminal
  2. Type npm install
  3. Make new file a called .env, set up first here
  4. Turn on Web Server and MySQL can using Third-party tool like xampp or lampp, etc.
  5. Create a database with the name note, and Import file backend-express.sql to phpmyadmin
  6. run the server with npm run server
  7. Open Postman desktop application or Chrome web app extension that has installed before
  8. Choose HTTP Method and enter request url.(ex. localhost:3000/)
  9. You can see all the end point here

Set up .env file

Open .env file on your favorite code editor, and copy paste this code below :

HOST = 'localhost'
USERNAME = 'your_mysql_user_admin'
DATABASE = 'your_database_name'
PASSWORD = 'your_mysql_user_password'

API_URL = 'url_deployed_backend'

SECRET_KEY='your_secret_key'
PORT = 'your_port'

Postman Documentation

You can grab the Postman documentation here

About


Languages

Language:JavaScript 100.0%