GithubHelp home page GithubHelp logo

itsrakeshhq / productivity-app Goto Github PK

View Code? Open in Web Editor NEW
33.0 33.0 32.0 465 KB

[DEMO] A series of tutorials on how to build a full stack MERN application

Home Page: https://blog.itsrakesh.co/lets-build-and-deploy-a-full-stack-mern-web-application

License: MIT License

Shell 0.35% HTML 9.72% CSS 11.29% JavaScript 72.74% Dockerfile 5.89%
css expressjs heroku html javascript jwt-authentication mongodb mongodb-atlas netlify nodejs reactjs web-application

productivity-app's People

Contributors

bravo68web avatar rakeshpotnuru avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

productivity-app's Issues

Auth is not working

I tried configuring application on AWS Beanstalk.

When trying to log in get 404 error.

Screenshot 2023-11-18 at 16 09 35

I found an error message when I checked the docker container.

182.68.166.3 - - [18/Nov/2023:10:39:23 +0000] "POST /server/auth/login HTTP/1.1" 404 150 "http://mern-dev2.eu-west-1.elasticbeanstalk.com/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36" "-"

Test case for backend is failing

Here is the console output for the failed testcase :


+ npm test

> [email protected] test
> cross-env NODE_ENV=test jest --testTimeout=5000

FAIL tests/activity.test.js
  GET /api/activities
    ✕ should get all the activities (4 ms)

  ● GET /api/activities › should get all the activities

    MongooseError: The `uri` parameter to `openUri()` must be a string, got "undefined". Make sure the first parameter to `mongoose.connect()` or `mongoose.createConnection()` is a string.

       8 | /* Connecting to the database before each test. */
       9 | beforeEach(async () => {
    > 10 |   await mongoose.connect(process.env.MONGODB_URI);
         |                  ^
      11 | });
      12 |
      13 | /* Closing database connection after each test. */

      at NativeConnection.Object.<anonymous>.Connection.openUri (node_modules/mongoose/lib/connection.js:689:11)
      at node_modules/mongoose/lib/index.js:379:10
      at node_modules/mongoose/lib/helpers/promiseOrCallback.js:32:5
      at promiseOrCallback (node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:10)
      at Mongoose.Object.<anonymous>.Mongoose._promiseOrCallback (node_modules/mongoose/lib/index.js:1224:10)
      at Mongoose.Object.<anonymous>.Mongoose.connect (node_modules/mongoose/lib/index.js:378:20)
      at Object.connect (tests/activity.test.js:10:18)

Test Suites: 1 failed, 1 total
Tests:       1 failed, 1 total
Snapshots:   0 total
Time:        1.492 s
Ran all test suites.


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.