Table of Contents
Technologies that I used to develop the REST API
- Clone the project and access the folder
git clone https://github.com/mohannadzidan/meow-server
- install dependencies
npm install
- Create the database using the sql queries at create-database.sql
- Create
.env
file inside the project folder
SECRET = {YOUR_PRIVATE_KEY}
MEOW_SERVER_ADDRESS = {IP_ADDRESS}
MEOW_SERVER_PORT = {PORT}
DATABASE_URL = mysql://{USERNAME}:{PASSWORD}@localhost:3306/meowdb
# set node_env to development or production
NODE_ENV = development
- run the server
npm run server
# or for development with nodemon
npm run start
- run the tests
npm run test
REST API reference in wiki