Giter Club home page Giter Club logo

basic-express-app's Introduction

basic-express-app

This app is meant to serve as a quick-start for fellows to clone into and build on top of. If you will be pushing it to Heroku you will need to set your node engine version in package.json. To set your node engine version:

  1. Go to the terminal, iTerm, or VSCode terminal and run node -v
  2. Copy the output from the last command and paste it into your package.json, in "engines.node"

Steps to clone and make your own

  1. Navigate to the directory where you want this app to live
  2. Clone the repo: git clone https://github.com/joinpursuit/basic-express-app.git
  3. Create your own repo on Github
  4. Navigate to the cloned repo from step 2 (should be cd ./basic-express-app)
  5. Reset the origin remote to now reference your newly created repo from step 3 (git remote set-url origin git://your.new.url.here)
  6. Confirm this worked by running git remote -v. The output should match your new repo
  7. Further confirm by pushing to your new remote and seeing the changes in the repo on Github

Cleanup

  1. You can now delete the README.md in your repo, or make it your own by overwriting its content :)
  2. You can rename the directory from basic-express-app to whatever you like by using the mv command like so: mv ./basic-express-app ./my-own-directory-name. This command is expecting you to be at the same level as the parent of basic-express-app. So if you run ls and don't see basic-express-app you'll need to tweak the command.

Steps to get the app working

  1. Add a .env file, and write the following in it: PORT=3001 (you can change the port number)
  2. Run npm i (or npm install, same thing) to create your node_modules
  3. Run npm start - this runs nodemon server.js
  4. Navigate to http://localhost:3001, you should be seeing "Basic Express App - ROOT" in your browser

basic-express-app's People

Contributors

mashuduek avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.