Skip to content

Simple NodeJS Express JS, mongoose application with authentication.

Notifications You must be signed in to change notification settings

Patrick2402/OldStyledApp

Repository files navigation

Start app

Downloading all dependencies:

npm install

Starting server

npm start

You can access your website via:

http://127.0.0.1:8000

Setting up MongoDB connection

To set mongo connection you have to change to your credentials USERNAME and PASSWORD and URL

    .connect('mongodb+srv://USERNAME:[email protected]/')

Tip

You can just clict 'connect' in mongo atlas next to your cluster and copy code.

Running on docker

To run app on docker you need to have cluster in mongoDB Atlas or localy. Step by step:

https://hub.docker.com/r/patryk2402/postapp
1. docker pull patryk2402/postapp
2. docker run -d -e DB_USER=YOUR_MONGODB_USERNAME -e DB_PASSWORD=YOUR_MONGODB_PASSWORD -e DB_URL=YOUR_MONGODB_URL -p port:8000 patryk2402/postapp
3. enter http://0.0.0.0:port

About

Simple NodeJS Express JS, mongoose application with authentication.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published