adrianponce89 / red-pri-api

SSR MERN project created with NextJS and Express

Home Page:https://www.redprimerainfancia.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

red-pri-api

This is a MERN project created using:

It's a app where you can:

  • Find profesionals listed by categories (profesion, speciality, themes)
  • See listed profesionals on googlemaps
  • Read articles
  • Register with email
  • Add, remove, edit users
  • Add, remove, edit rich text articles, with editor included

A working version of the project can be seen at:

https://redprimerainfancia.com/

Example_Image_1 Example_Image_2 Example_Image_3 Example_Image_4 Example_Image_4

How to run this project locally

  • Clone this repo
  • Run npm install
  • Add a .env file on the root of the project with the next variables:
MONGO_URI=<your_mongo_uri>

# Passport
SESSION_KEY=<your_session_key>
JWT_SECRET=<your_jwt_secret>

# Port
PORT=3000

#
TINY_API_KEY=<your_tiny_api_key>

#Server
DEV_SERVER=http://localhost:3000
PROD_SERVER=<your_prod_server>
DOMAIN_URL=<your_domain_url>

#Imgur
IMGUR_CLIENT=<your_imgur_client>
IMGUR_API_URL=<your_imgur_api_url>
IMGUR_SECRET=<your_imgur_secret>

#Google Maps
GOOGLE_MAPS_API_KEY=<your_google_maps_api_key>
  • Run npm run dev to start the web server. This will open the landing page

Available Scripts

In the project directory, you can run:

npm run dev

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm run next

Builds the app for development to the src/.next folder.

npm run build

Builds the app for production to the src/.next folder.

npm start

Runs the app for production mode.
The proyect must have been build before