Skip to content

nermineslimane/Node-express-mysql-starterproject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node-express-mysql-starterproject

NodeJS,express and mysql starter project Start with cloning the repo & Run npm i to download all the dependecies After that create a .env file where you should define the status of your project 'development' or 'production' and according to that define a prot for each status .env

STATUS=development DEV_PORT=7000 PROD_PORT=8000

Your .env file should be at the root folder of the project and should look like this :

https://gist.github.com/nermineslimane/27d7ea288c83869e25ca152e64a6af85?plain=1

After setting this up you can run npm start or in dev mode usin nodemon npm run dev You'll have your project running according to your status

  • Development

image

  • Production

image

Create a database named project in your project and change the config in your .env file and there you have it, the table user will be created automatically

image

About

NodeJS,express and mysql starter project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published