Skip to content

kfatmakausar/recipe-app-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ExpressJS - Starter Code

You can either:

Clone repo

Clone the repo and set up with your own GitHub account

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

It will not set a template engine (no need since you're creating an API). It will also create a .gitignore file for you.

Move into the directory and install dependencies

cd my-app
npm install

This is a good point to initialize a git repository and make your initial commit.

Install these dependencies via npm install

npm i compression dotenv helmet pgtools sequelize

Nodemon

I recommend installing nodemon

npm i -g nodemon

Add the following to the list of scripts in package.json:

"dev": "nodemon ./bin/www"

Nodemon will automatically reload the server when file changes are detected.

npm run dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published