Skip to content

IliaZolas/mernt-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MERNT Boilerplate

🍳 This is a boilerplate to quickly setup a webapp using Typescript, React, MongoDB, Express and Node.

🤖 Currently, it holds a basic CRUD configuration where a user can add, update, view or delete a book.

🔑 Signup and Login have been provided.

👮 Frontend protected routes and authorisation on backend routes have been provided too.

⚙️ Conditional rendering based on if user is logged in or not.

Checklist

⚙️ Currently updating boilerplate!

Instructions

  1. Before cloning and launching, please create a MongoDB account as well as a Cloudinary account to obtain your api keys.

  2. Clone repo

  3. Create .env files and populate them like so

.env in root of server folder

DATABASE_ACCESS=put-your-mongodb-access-url-here
CLOUDINARY_URL=put-your-cloudinary-access-url-here
CLOUD_NAME=put-your-cloudinary-name-here
CLOUD_API_KEY=put-your-cloudinary-api-key-here
CLOUD_API_SECRET=put-your-cloudinary-api-secret-here

.env in root of client folder

REACT_APP_CLOUDINARY_USERNAME=your-cloudinary-user-name-here
REACT_APP_CLOUDINARY_PRESET="your-preset-name-in-betwen-these-quotes"
  1. cd server, npm install and then npm start

  2. cd client, npm install and then npm start

Working with MongoDB

Make sure to include your IP address of your workplaces in the MongoDB dashboard.

For development purposes, you can also set MongoDB to accept requests from any IP address to avoid confusion when working from different places.

About

A mern boilerplate rigged with typescript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published