Skip to content

u-sour/mobile-legends-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

36 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ—οΈ MEVN-Stack-Template

This is a simple template for building "MEVN" stack with authentication.

πŸ›Έ Deployment

it's simple you can deploy frontend and backend separately.

πŸ’» Frontend you can choose render, vercel, netify etc...

πŸ—ƒοΈ Backend you can choose render, vercel etc...

πŸ€” How to deploy frontend and backend together on Render ?

πŸ’» Frontend

  1. set your website address in .env file

    example: VITE_API_URI="https://mevn-deploy.onrender.com"

  2. run cmd npm run build

  3. copy all files from dist folder on frontend then paste into public folder on backend

πŸ—ƒοΈ Backend

  1. add your website address in allowed_origin.js file

    example:

    const origins = [
    "http://localhost:3000",
    "http://localhost:5173",
    "http://192.168.1.13:5173",
    "http://localhost:5174",
    "http://192.168.1.13:5174",
    "https://mevn-deploy.onrender.com"
    ];
    export default origins;
    
  2. push all of your source code into github

☁️ Render

  1. login > new > web service > build and deploy from a git repository

  2. select your repo that you want to deploy > connet

  3. input the information that render require and your enviroment variables

    example:

Screenshot from 2023-10-10 23-34-38

  1. create web service then wait it until build successful

That's it, congratulation πŸ₯³

πŸ€” Where should i start ?

go to backend and frontend folder and check ReadMe.md file.

😎 good luck, see you there.

About

this is an unofficial "Mobile Legends: Bang Bang" api.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published