Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/papilo-cloud/mern-skeleton
This skeleton application will encapsulate rudimentary features and a workflow that's repeated for most MERN applications.
https://github.com/papilo-cloud/mern-skeleton
crud expressjs functional-programming javascript mern-stack mongodb mongoose nodejs
Last synced: 9 days ago
JSON representation
This skeleton application will encapsulate rudimentary features and a workflow that's repeated for most MERN applications.
- Host: GitHub
- URL: https://github.com/papilo-cloud/mern-skeleton
- Owner: papilo-cloud
- Created: 2024-11-23T21:55:24.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-12-09T21:36:46.000Z (about 2 months ago)
- Last Synced: 2024-12-09T22:31:57.768Z (about 2 months ago)
- Topics: crud, expressjs, functional-programming, javascript, mern-stack, mongodb, mongoose, nodejs
- Language: TypeScript
- Homepage:
- Size: 195 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Skeleton MERN Application
- While developing different web applications, you will find there are common tasks,
basic features, and implementation code repeated across the process. The same is true
for the MERN applications. Taking these similarities into consideration, this lay the foundations for a skeleton MERN application that can be easily modified and extended to implement a variety of
MERN applications.## Overview
- The skeleton application will encapsulate rudimentary features and a workflow that's
repeated for most MERN applications.
- This skeleton application is a basic but fully
functioning MERN web application with user create, read, update, delete (CRUD),
and authentication-authorization (auth) capabilities; this will also demonstrate how
to develop, organize, and run code for general web applications built using this
stack.
- The aim is to keep the skeleton as simple as possible so that it is easy to extend
and can be used as a base application for developing different MERN applications.## Config variables
- First we install ```dotenv```, a module that loads a `.env` file into `process.env`
- Then create a new .env file in the server directory and add your configuration:
```
MONGODBURL=your_mongodb_url
JWT_SECRET=your_jsonwebtoken_secret
PORT=port_number
```
- In the config/config.js file, we load the variables and expose them## Run Scripts
To run the application, use these commands:
- for the backend
```
cd server
npm run dev
```- for the frontend
```
cd client
npm run dev
```### Screenshot of the application
![Screenshot](https://github.com/papilo-cloud/mern-skeleton/blob/main/client/public/screenshot.jpg)