Skip to content

ahmadnadeem6236/nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backend Using Nodejs

  • Initial Setup
  • Connection to Database
  • Models
  • POST - Form route created and tested
  • POST - User routes created and tested
  • POST - Validations
  • GET - Users data
  • Final touch
  • Completed

Node/Express/Sequelize App

Build Status

Example Node (Express + Sequelize) codebase containing having (Create, Read) that adheres to the [RealWorld] API spec.

Getting Started

Prerequisites

Run the following command to install dependencies:

npm install

Environment variables

This project depends on some environment variables. If you are running this project locally, create a .env file at the root for these variables. Your host provider should included a feature to set them there directly to avoid exposing them.

Here are the required ones:

PORT=
CORS_ORIGIN=*
DATABASE_URL=

Run the project

Run the following command to run the project:

npm run dev

About

A backend with SQL database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published