Skip to content

citi-onboarding/virtu-onepage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CITi logo

staging production

Virtù Consultoria Onepage


How to install and run the project:

1. Install dependencies

Run yarn install or npm install on both client and server folders, this command will install the project's dependencies.

2. Create MongoDB cluster and get the url

To do this, create a Mongo DB account, then create a Mongo cluster for the project. Now on the Mongo DB screen, go to: Database Access> Database Users> Add New Database User and add a user, make sure you remember the username and password, we will need them. The next step is go to: Network Access> Ip Whitelist> Add IP Adress> Current Ip Adress to add your current ip address to the cluster's whitelist, you will need to do this with every source that will access your database or choose the option that allows any Ip to access.
The mongo url will be:

mongodb://[USER]:[PASSWORD]@[SHARD_URL]/[DB_NAME]?ssl=true&replicaSet=[SHARD_NAME]&authSource=admin&retryWrites=true&w=majority

3. Create cloudinary account

Go to cloudinary images website and create an account. Under the Account Details section is a url named API environment variable this is your cloudinary url.

4. Create a env file

Create a file named .env and, inside of it, place this:

PORT=[PORT]
MONGO_URI=[MONGO_URI]
COOKIE_SECRET=[COOKIE_SECRET]
CLOUDINARY_URL=[CLOUDINARY_URL]

Where:
[PORT] is which port you want the server to run on (usually 3001).
[MONGO_URI] is the uri you got in step 2.
[COOKIE_SECRET] is a random string used for authentication on the admin.
[CLOUDINARY_URL] is the url you got in step 3.

5. running the servers

To run this project, we will need to run two servers, the react one on /client and keystone on /server.
The command to run react is yarn start or npm start depending on which tool was used on installation, the react server will run on port 3000 by default.
To run keystoneJS server, use the command node index.js, the server will run on whatever port is in the variale in the env file, you will find the admin interface in http://localhost:[PORT]/admin

The development team - Squad Debs <3

Deborah 💗

Arthur Brito 💙

Lucas Melo 💚

Shellyda Barbosa 💜

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •