Skip to content

ronnythedev/letusmeet-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

👉 Example

An example of this app is running here: https://www.myplanapp.info. (for now only in Spanish, multi-language version upcoming)

👉 Get Started

  1. Download and install Nodejs in your computer (LTS version).

  2. Open the folder's project in VisualStudio Code and open the terminal.

  3. Install dependencies. How? Run the following in the terminal:

    npm install
    
  4. Create a file named .env in the root of the project. Update it with the environment variables. You can review .env.example file as a referece. IMPORTANT: DO NOT CHANGE .env.example OR COMMIT IT TO SOURCE CONTROL, THIS IS JUST A REFERENCE FILE.

    3.1. Set the port where the backend server will run

    PORT=5000
    

    3.2. The connection string to the mongo cluster and database

    MONGO_CONNECTION_STRING=mongodb+srv://<user>:<password>@cluster0.m3ado.mongodb.net/<database>?retryWrites=true&w=majority
    

    3.3. The secret used to generate and validate JWT. This should be the same as the one in the frontend project, otherwise the authentication won't be possible.

    JWT_SECRET=thesecretvalue
    
  5. Finally, run the server executing the following in the terminal:

    npm run start-dev
    
  6. Now the API should be running and listening requests in the port configured in the .env file.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published