Skip to content

Search for Postal Code (Myanmar only). You can search with English or Myanmar inputs. Have a nice day!

Notifications You must be signed in to change notification settings

myonaingwinn/myanmar-postal-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Icon

Envelope

Beta Icon

Table of Contents
  1. Environment Setting without using Docker
  2. Environment Setting using Docker
  3. Troubleshooting

Environment Setting without using Docker

Requirements

  1. node-16 and above
  2. MongoDB account (free)

Project Setup

Frontend

Install packages

cd frontend && npm i

Copy .env file and set your Env data

cp .env.example .env

Server

Install packages

cd server && npm i

Copy .env file and set your Env data

You'll need MongoDB configurations. Go there and create Cluster, DB, etc.,.

cp .env.example .env

Run

Frontend

cd frontend && npm run dev

Server

cd server && npm run dev

Environment Setting using Docker

Requirements

  1. Docker
  2. Make

Project Setup

make setup

Set Env data

Set necessary data in both of the following .env files.

  • frontend/.env

  • server/.env

Run

make up

That's all!

Take a look other Make commands in this Makefile

Troubleshooting

If you encounter any issues during the setup or running of the application, you can refer to the following troubleshooting tips:

  • Failure of make setup command: If the make setup command fails, you can try deleting the node_modules folder in both the frontend and server directories. After deleting the folders, run the make setup command again.
  • CORS error: If you come across a CORS (Cross-Origin Resource Sharing) error, ensure that you have entered the URL of your frontend application in the ALLOWED_ORIGIN configuration variable in the server/.env file. This allows the server to accept requests from it.

If you encounter any other bugs or issues while using the application, please help me improve it by opening a new issue here. I appreciate your feedback and will work towards resolving any reported problems.

Feel free to reach out if you have any further questions or concerns.