Skip to content

Veggier/MLH-TTP-TEAM3-BACKEND

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bookstore - Express Server


Starting the Server

To start up dev server with nodemon:

# Run the appropriate command based on your system:
# On Mac/Linux:
npm run dev
# On Windows:
npm run dev_windows

Setting up the server

First ensure you have a database setup and have access to the passwrod, we recommend postgre or elephantsql. Create a .env file within the BackEnd directory and save your LOCAL_DATABASE_PASSWORD in this file.

LOCAL_DATABASE_PASSWORD=YourDatabasePassword

If no password is set up for your database, please pass an empty string like so:

LOCAL_DATABASE_PASSWORD=''

Express Generator

You can use this Express Generator command, indicating the directory to build your project in instead of my-app:

npx express-generator --no-view --git my-app

Move into the directory and install dependencies

cd my-app
npm install

Next back out of express directory and install these dependencies via npm install:

cd ..
npm i compression dotenv helmet pgtools sequelize nodemon

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published