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

build issue #13

Open
kekekeke8 opened this issue May 27, 2019 · 8 comments
Open

build issue #13

kekekeke8 opened this issue May 27, 2019 · 8 comments

Comments

@kekekeke8
Copy link

hello, could you give some tips how to run your porect. correctly? I use "npm instal","npm run build", and "npm run serve". But I encountered many problems. Could you give me some advice?

@aaazureee
Copy link
Owner

Hi thank you for showing interest in my past project LOL. First just make sure that npm install and npm start works.
It seems like you have to create a .env file in the root folder to make the project works correctly. If you can screenshot error I can help you.

Create a .env file and put in the root folder (same directory as package.json). THE DB_URI option here is my database in mlab (mongoDB). You can go to mlab.com to create your own database and change the connection. Feel free to ask any questions.

SESSION_SECRET=cat
DB_URI=mongodb://test:[email protected]:15569/event

@kekekeke8
Copy link
Author

Thanks for reply. I use the way you provide -- "create .env file that contains information you give"
. And I use "npm install", "npm run build", and "node dust/app.js" command, the results as below.
E3722923-0BE3-48AF-AD9A-16E5672E5891
And then I try to visit "127.0.0.1:3000", the website reminds me the information as below.

57EC753A-475D-4150-A720-4722604BE0A1

@kekekeke8
Copy link
Author

As you said, I want to create my own database to test. I have registered the lab, but I do not know how to create database file that meet the project need, could you provide this instructive step for me?

@aaazureee
Copy link
Owner

You should try: http://localhost:3000.
And for mlab, you dont need to create database file or anything. Just create a new database and there will be a connection link like this:
image
Go to Users tab and create a new user. Replace dbuser and dbpassword with what you just created.

@kekekeke8
Copy link
Author

Thanks for help. It seems that mlab does not accept registering now. The new web site is https://cloud.mongodb.com/. I have registered this, and create a new instance named "Cluster0",
and I use below to test connecting but it failed.

SESSION_SECRET=cat
DB_URI=mongodb+srv://user:[email protected]/test

@kekekeke8
Copy link
Author

Thanks for your help again, I have solved this step. Now I can connect to"https://cloud.mongodb.com/".

@kekekeke8
Copy link
Author

I confuse that I could not delete the database , and i could not operate the database online via ""https://cloud.mongodb.com/"". I believe it is similar to the old version mlab. I could not see anything
about the database online. I feel it just like a online machine.

@kekekeke8
Copy link
Author

I have solved this

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

2 participants