...
In order to run the database for the first time, you will need to execute the following command in the CLI (make sure you’ve navigated back to the base folder of the repo!). Run
yarn prisma:reset
. This should applyThis combines three commands for you:
yarn prisma:migrate
which applies all the existing database migrations to the database
,
yarn prisma:
generate
which builds the type files for typescript so you can code with it, andyarn prisma:seed
which populates the database with test data
Refer to prisma migration tools for more information about these commands.
...
To test that things are working, run
yarn install
and thenyarn start
in the CLI (in the root directory) and go to an example API route. Example:localhost:3001/users
.Then go to
localhost:3000
to see the dashboard (if it does not launch automatically)! Feel free to take a look around!
IDE: VSCode
We use VSCode at NER. You can use something else, but we won’t be able to help you if you have problems. VSCode is pretty industry standard though, so it’s very good to know.
Click
File > Open Folder
then navigate to the repo and open itThere should be a popup in the bottom right asking you if you want to install the recommended extensions. Click install.
If for some reason this doesn’t show up, the following are the mandatory VSCode extensions. You can install them manually by clicking the extensions tab on the left (it looks like building blocks) and searching for them:
And the optional ones (for a better experience):
Babel (mgmcdermott.vscode-language-babel)
Material Icon Theme (pkief.material-icon-theme)
Congrats!
You now (theoretically) have a functioning environment! Congratulations! If not, please look at the FAQ page, and if that doesn’t help, look for further help in the #software_env-setup slack channel (more info down below). Once again, here is the link to the repo (and here is the link to the outdated repo which still holds a lot of useful information).
...
Learn about the technologies we use and join Slack ! The technologies are mentioned below and on the GitHub repository. (see below)! If you are not familiar with the technologies, don’t worry! We have a some learning curriculumresources to help with the basics! Also, if you are not familiar with Git, please familiarize yourself with common git commands, CLI commands, and what Git is (if you get the gist you do not need to read through all of it). You may also follow tutorials found in the NER curriculum for this information as well as attend Learning Session #1. When you are ready to start development on the codebase, please read through the contributor guide on the GitHub repo.
...
Our Product Team exists as a wonderful resource for all developers on the Software Solutions team. Product Analysts, Product Managers, and our head Head hold key business facing information for all parts of our application, and are a great resource to go to if you have non-technical questions. Make sure to reach out to relevant analysts, PMs, or even Leroy first before reaching out to others for these questions in case they can answer your questions.
...