Code Monkey home page Code Monkey logo

dealapp-assessment's Introduction


DealApp

Deal App Matching System

Give a star ⭐ if you like it ❤️


Table of Contents 📋

About The Project 👀

A Matching System that match Property Request with Ads.

Built With 🔨

Getting Started 🚀

To get a local copy up and running follow these simple example steps.

Prerequisites 💻

npm install -g nodemon

Installation ⬇️

1. Fork this repository 🍴

2. Clone your forked repository to your local system 👥

git clone https://github.com/<your-username>/deadealapp-assessment.git

Or Download and extract the zip file.

Environmental Variables

You need to make your own .env and place at root with the following structure.

 NODE_ENV=development
 PORT=5000
 MONGO_URI=mongodb://localhost:27017/DealApp
 JWT_SECRET=0000000
 JWT_EXPIRE=30d
 JWT_COOKIE_EXPIRE=30
  • NODE_ENV: It should be "production" in order to run the api on production otherwise use "development"
  • PORT: Your api hosting port
  • MONGO_URI: Your database path

    Eg: "mongodb://localhost:27017/DealApp" If you're hosting on your localhost server.

  • JWT_SECRET: Your json web token secret key.
  • JWT_EXPIRE: The period token can last before expiring expressed in seconds or a string describing a time span

    Eg: 60, "2 days", "10h", "7d". A numeric value is interpreted as a seconds count. If you use a string be sure you provide the time units (days, hours, etc), otherwise milliseconds unit is used by default ("120" is equal to "120ms").

Docker 🐳

To build and run the application using Docker, use the following commands:

docker-compose build
docker-compose up

Running Locally

1. Install NPM packages ⬇️

npm install

2. Run! 🏃‍♂️

npm start

3. Or Run on Dev! 🏃‍♂️

npm run dev

Database Backup

To backup the database locally, you can use seed.js:

npm run seed

or you can use mongorestore at root:

mongorestore --db DealApp ./backup/DealApp

Test

To run test:

npm test

Swagger

You can access the Swagger documentation at:

http://localhost:5000/docs

Authors 📝

dealapp-assessment's People

Contributors

mohanedashraf avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.