This is RESTful api design for
E-Dress App frontend
.
Built with Node js, using ExpressJs framework and other libraries.
- Open your terminal or command prompt
- Type
git clone https://github.com/solehudin5699/E-DRESS-backend.git
- Open the folder and type
npm install
for install dependencies - If you haven't installed nodemon, please install it globally, type
npm install -g nodemon
- Create database such as named e-dress_db and import database e-dress_db.sql in folder sql to your new database
- Create file .env in root folder with the following contents :
DB_HOST = 'localhost'
DB_USERNAME = 'root'
DB_DATABASE = 'e-dress_db'
DB_PASSWORD = ''
PORT = 8000
SECRET_KEY_ADMIN='ADmIn'
SECRET_KEY_CUSTOMER='CUstOmer'
Customize DB_HOST, DB_USERNAME, and other key with the one you are using.
- Run XAMPP control panel
- Type
npm run server
ornpm start
in terminal for run this backend.
Frontend E-Dress App that use this RESTful API.