Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading the project (npm start) gives a 404 error #1

Open
aamirlaasi opened this issue Apr 28, 2018 · 5 comments
Open

Loading the project (npm start) gives a 404 error #1

aamirlaasi opened this issue Apr 28, 2018 · 5 comments

Comments

@aamirlaasi
Copy link

After installing the dependencies (npm install) and starting the project (npm start), calling up localhost:3000 gives a 404 error. However, I am able to access the admin panel at http://localhost:3000/keystone/.

@ModjoInc
Copy link

same here...

@helloanil
Copy link

Dear @aamirlaasi and @ModjoInc. the project works. Please follow these steps:

  • Clone the repo
  • run npm i or yarn
  • In another shell window, run mongod command to start the MongoDB
  • run npm run compile or yarn run compile to compile the client code
  • run npm run start or yarn run start to start the server

At this point, you will be able to see LOADING screen when you go to locahost:3000/index.html. To see a recipe,

  • go to localhost:3000/keystone/signin
  • sign in with credentials as [email protected] and admin
  • click on Recipes to add a dummy recipe
  • after adding a dummy recipe, go back to localhost:3000/index.html and you will see your recipe after LOADING

@koebeen
Copy link

koebeen commented Jul 24, 2018

this is a cors issue.

to fix:
add these lines to the top of the module.exports function in /server/routes/index.js

  app.all('/api*', keystone.middleware.cors);
  app.options('/api*', function(req, res) { res.send(200); });

and this line to /index.js
keystone.set('cors allow origin', true);

@ae6623
Copy link

ae6623 commented Jul 29, 2018

it is not beautiful

@tirumalavasu
Copy link

Dear @aamirlaasi and @ModjoInc. the project works. Please follow these steps:

  • Clone the repo
  • run npm i or yarn
  • In another shell window, run mongod command to start the MongoDB
  • run npm run compile or yarn run compile to compile the client code
  • run npm run start or yarn run start to start the server

At this point, you will be able to see LOADING screen when you go to locahost:3000/index.html. To see a recipe,

  • go to localhost:3000/keystone/signin
  • sign in with credentials as [email protected] and admin
  • click on Recipes to add a dummy recipe
  • after adding a dummy recipe, go back to localhost:3000/index.html and you will see your recipe after LOADING

username: [email protected]
password: admin

as per user data in mongodb collection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants