This is the official repository for [iftar app](link to the app) backend server, which is a react native app that helps you find the nearest al-rahma restaurant to break your fasting during ramadan
First, you need to have docker
and docker-compose
installed on your machine.
Refer to the download page to get them.
Also you will need node
and npm
installed on your machine.
Refer to the download page to get them.
make sure you install the version specified in the .nvmrc
file
To run the development server, you have two options:
This is the recommended way to run the project locally. It will run the project in a container, and you will not need to install any dependencies on your machine. Docker set up the mongo db for you, and run the server in a locale container.
To run the project in docker, run the following command (this will take a few minutes the first time you run it):
npm run docker:dev
Then open your browser and go to http://localhost:5000.
In case you wanna run the frontend locally, and use docker only for the database, follow those steps:
1 - start the database containers:
npm run docker:dev:min
2 - install the dependencies:
npm install
3 - run the frontend:
npm run dev
Then open your browser and go to http://localhost:5000.
To test the production build locally, run the following command:
npm run docker:prod
Then open your browser and go to http://localhost:5000.